Add fan module (#764)

Co-authored-by: Steven B <51370195+sdb9696@users.noreply.github.com>
This commit is contained in:
Teemu R
2024-04-17 12:07:16 +02:00
committed by GitHub
parent da441bc697
commit 700643d3cf
8 changed files with 120 additions and 7 deletions

View File

@@ -314,12 +314,11 @@ class SmartDevice(Device):
return self._last_update
def _update_internal_state(self, info):
"""Update internal state.
"""Update the internal info state.
This is used by the parent to push updates to its children
This is used by the parent to push updates to its children.
"""
# TODO: cleanup the _last_update, _info mess.
self._last_update = self._info = info
self._info = info
async def _query_helper(
self, method: str, params: Optional[Dict] = None, child_ids=None