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:
parent
ed576edde7
commit
50e11773ee
6 changed files with 17 additions and 17 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue