Revert changes to platforms using self.device (#16209)
* Revert tank_utility * Fix Soundtouch * Fix Plex * Fix Emby * Fix Radiotherm * Fix Juicenet * Fix Qwikswitch * Fix Xiaomi miio * Fix Nest * Fix Tellduslive * Fix KNX
This commit is contained in:
parent
289b1802fd
commit
5341785aae
28 changed files with 256 additions and 237 deletions
|
@ -130,7 +130,7 @@ class NestBinarySensor(NestSensorDevice, BinarySensorDevice):
|
|||
|
||||
def update(self):
|
||||
"""Retrieve latest state."""
|
||||
value = getattr(self._device, self.variable)
|
||||
value = getattr(self.device, self.variable)
|
||||
if self.variable in STRUCTURE_BINARY_TYPES:
|
||||
self._state = bool(STRUCTURE_BINARY_STATE_MAP
|
||||
[self.variable].get(value))
|
||||
|
@ -154,5 +154,4 @@ class NestActivityZoneSensor(NestBinarySensor):
|
|||
|
||||
def update(self):
|
||||
"""Retrieve latest state."""
|
||||
self._state = self._device.has_ongoing_motion_in_zone(
|
||||
self.zone.zone_id)
|
||||
self._state = self.device.has_ongoing_motion_in_zone(self.zone.zone_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue