| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b0721a commit 951d41a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,6 +54,7 @@ def __init__(self, device: "SmartDevice", module: str): | |||
| 54 | 54 | "Auto update enabled", | |
| 55 | 55 | container=self, | |
| 56 | 56 | attribute_getter="auto_update_enabled", | |
| 57 | + attribute_setter="set_auto_update_enabled", | ||
| 57 | 58 | type=FeatureType.Switch, | |
| 58 | 59 | ) | |
| 59 | 60 | ) | |
@@ -101,4 +102,5 @@ def auto_update_enabled(self): | |||
| 101 | 102 | ||
| 102 | 103 | async def set_auto_update_enabled(self, enabled: bool): | |
| 103 | 104 | """Change autoupdate setting.""" | |
| 104 | - await self.call("set_auto_update_info", {"enable": enabled}) | ||
| 105 | + data = {**self.data["get_auto_update_info"], "enable": enabled} | ||
| 106 | + await self.call("set_auto_update_info", data) #{"enable": enabled}) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments