mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Fix smart led status to report rule status (#1002)
Change the reporting of the led state for smart devices to match the setter which sets the rule to always or never.
This commit is contained in:
@@ -27,7 +27,7 @@ class Led(SmartModule, LedInterface):
|
||||
@property
|
||||
def led(self):
|
||||
"""Return current led status."""
|
||||
return self.data["led_status"]
|
||||
return self.data["led_rule"] != "never"
|
||||
|
||||
async def set_led(self, enable: bool):
|
||||
"""Set led.
|
||||
|
Reference in New Issue
Block a user