Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Apr 9, 2022
1 parent bfa6ab7 commit 976354e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
with:
hass-version: ">=2022.3.0"
path: "custom_components/miwifi"
extra-pylint-options: "--disable=unused-argument"

codeql:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion custom_components/miwifi/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async def _async_call(self, method: str, state: str, **kwargs: Any) -> None:
action = getattr(self, method)

if action:
await action(**kwargs)
await action()

self._updater.data[self.entity_description.key] = state == STATE_ON
self._attr_is_on = state == STATE_ON
2 changes: 1 addition & 1 deletion custom_components/miwifi/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "miwifi",
"name": "MiWiFi",
"version": "2.2.3",
"version": "2.2.4",
"documentation": "https://github.com/dmamontov/hass-miwifi/blob/main/README.md",
"issue_tracker": "https://github.com/dmamontov/hass-miwifi/issues",
"config_flow": true,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/miwifi/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ async def _async_call(self, method: str, state: str, **kwargs: Any) -> None:
action = getattr(self, method)

if action:
await action(**kwargs)
await action()

self._updater.data[self.entity_description.key] = state == STATE_ON
self._attr_is_on = state == STATE_ON
Expand Down
4 changes: 2 additions & 2 deletions custom_components/miwifi/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ async def _async_prepare_channels(self, data: dict) -> None:
except ValueError:
pass

async def _async_prepare_devices(self) -> None:
async def _async_prepare_devices(self, data: dict) -> None:
"""Prepare devices.
:param data: dict
Expand Down Expand Up @@ -685,7 +685,7 @@ async def _async_prepare_device_list(self, data: dict) -> None:
for device in devices.values():
integrations[_ip][UPDATER].add_device(device[0], True, device[1])

async def _async_prepare_device_restore(self) -> None:
async def _async_prepare_device_restore(self, data: dict) -> None:
"""Restore devices
:param data: dict
Expand Down

0 comments on commit 976354e

Please sign in to comment.