mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Use correct key for chjecking if on since should be added
This commit is contained in:
parent
72372fb254
commit
288b5cacce
@ -173,7 +173,7 @@ class SmartDevice(Device):
|
||||
|
||||
# We check for the key available, and not for the property truthiness,
|
||||
# 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(
|
||||
Descriptor(
|
||||
device=self,
|
||||
|
Loading…
Reference in New Issue
Block a user