Use correct key for chjecking if on since should be added

This commit is contained in:
Teemu Rytilahti 2024-02-09 00:17:47 +01:00
parent 72372fb254
commit 288b5cacce

View File

@ -173,7 +173,7 @@ class SmartDevice(Device):
# We check for the key available, and not for the property truthiness, # We check for the key available, and not for the property truthiness,
# as the value is falsy when the device is off. # as the value is falsy when the device is off.
if "on_since" in self._info: if "on_time" in self._info:
self.add_descriptor( self.add_descriptor(
Descriptor( Descriptor(
device=self, device=self,