Tado: use proper variable name to avoid confusion (#44571)

Current device_id variable refers to the Home ID obtained from the Tado API.
Let's use home_id in order to avoid confusion with Tado devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2020-12-28 14:57:51 +01:00 committed by GitHub
parent ed576edde7
commit 50e11773ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 17 deletions

View file

@ -63,7 +63,7 @@ class TadoDeviceSensor(TadoDeviceEntity, BinarySensorEntity):
self.device_variable = device_variable
self._unique_id = f"{device_variable} {self.device_id} {tado.device_id}"
self._unique_id = f"{device_variable} {self.device_id} {tado.home_id}"
self._state = None
@ -74,7 +74,7 @@ class TadoDeviceSensor(TadoDeviceEntity, BinarySensorEntity):
async_dispatcher_connect(
self.hass,
SIGNAL_TADO_UPDATE_RECEIVED.format(
self._tado.device_id, "device", self.device_id
self._tado.home_id, "device", self.device_id
),
self._async_update_callback,
)