mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18:02 +00:00
Enable ruff check for ANN (#1139)
This commit is contained in:
@@ -14,7 +14,7 @@ class Led(IotModule, LedInterface):
|
||||
return {}
|
||||
|
||||
@property
|
||||
def mode(self):
|
||||
def mode(self) -> str:
|
||||
"""LED mode setting.
|
||||
|
||||
"always", "never"
|
||||
@@ -27,7 +27,7 @@ class Led(IotModule, LedInterface):
|
||||
sys_info = self.data
|
||||
return bool(1 - sys_info["led_off"])
|
||||
|
||||
async def set_led(self, state: bool):
|
||||
async def set_led(self, state: bool) -> dict:
|
||||
"""Set the state of the led (night mode)."""
|
||||
return await self.call("set_led_off", {"off": int(not state)})
|
||||
|
||||
|
Reference in New Issue
Block a user