Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tado unique mobile device dispatcher #107631

Merged
2 changes: 2 additions & 0 deletions homeassistant/components/tado/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def update_mobile_devices(self) -> None:
_LOGGER.debug("No linked mobile devices found for home ID %s", self.home_id)
return

# Make request at PyTado the library should fix it, so this can be removed
erwindouna marked this conversation as resolved.
Show resolved Hide resolved
if "errors" in mobile_devices and len(mobile_devices["errors"]) > 0:
erwindouna marked this conversation as resolved.
Show resolved Hide resolved
erwindouna marked this conversation as resolved.
Show resolved Hide resolved
_LOGGER.error(
"Error for home ID %s while updating mobile devices: %s",
Expand Down Expand Up @@ -243,6 +244,7 @@ def update_devices(self):
_LOGGER.debug("No linked devices found for home ID %s", self.home_id)
return

# Make request at PyTado the library should fix it, so this can be removed
if "errors" in devices and len(devices["errors"]) > 0:
_LOGGER.error(
"Error for home ID %s while updating devices: %s",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/tado/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

SIGNAL_TADO_UPDATE_RECEIVED = "tado_update_received_{}_{}_{}"
SIGNAL_TADO_MOBILE_DEVICE_UPDATE_RECEIVED = "tado_mobile_device_update_received_{}"
SIGNAL_TADO_MOBILE_DEVICES_UPDATE = "tao_mobile_devices_update"
SIGNAL_TADO_MOBILE_DEVICES_UPDATE = "tado_mobile_devices_update"
UNIQUE_ID = "unique_id"

DEFAULT_NAME = "Tado"
Expand Down
Loading