Skip to content

Commit

Permalink
fix count bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Dec 29, 2021
1 parent a8abfbd commit 5246487
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/miwifi/core/luci.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async def set_devices_list(self) -> None:

if "list" in wifi_connect_devices:
for index, device in enumerate(wifi_connect_devices["list"]):
self._signals[device["mac"]] = device["signal"]
self._signals[device["mac"]] = device["signal"] if "signal" in device else 0
force_devices[device["mac"]] = device

if self.is_repeater_mode and self.is_force_load and len(force_devices) > 0:
Expand Down
5 changes: 3 additions & 2 deletions custom_components/miwifi/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"domain": "miwifi",
"name": "MiWiFi",
"version": "1.3.1",
"version": "1.3.2",
"documentation": "https://github.com/dmamontov/hass-miwifi",
"issue_tracker": "https://github.com/dmamontov/hass-miwifi/issues",
"config_flow": true,
"requirements": [],
"dependencies": [],
"codeowners": ["@dmamontov"]
"codeowners": ["@dmamontov"],
"iot_class": "local_polling"
}

0 comments on commit 5246487

Please sign in to comment.