Renamed variables in Tuya (#57759)

This commit is contained in:
Franck Nijhof 2021-10-15 11:33:30 +02:00 committed by GitHub
parent b7c52d0485
commit b97d5a703c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 85 additions and 88 deletions

View file

@ -88,4 +88,4 @@ class TuyaBinarySensorEntity(TuyaEntity, BinarySensorEntity):
@property
def is_on(self) -> bool:
"""Return true if sensor is on."""
return self.tuya_device.status.get(self.entity_description.key, False)
return self.device.status.get(self.entity_description.key, False)