Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion kasa/smart/modules/firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def __init__(self, device: "SmartDevice", module: str):
"Auto update enabled",
container=self,
attribute_getter="auto_update_enabled",
attribute_setter="set_auto_update_enabled",
type=FeatureType.Switch,
)
)
Expand Down Expand Up @@ -101,4 +102,5 @@ def auto_update_enabled(self):

async def set_auto_update_enabled(self, enabled: bool):
"""Change autoupdate setting."""
await self.call("set_auto_update_info", {"enable": enabled})
data = {**self.data["get_auto_update_info"], "enable": enabled}
await self.call("set_auto_update_info", data) #{"enable": enabled})