Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Mar 12, 2021
1 parent 136c909 commit 4074347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/miwifi/core/luci.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ async def set_device_data(self) -> None:

self._device_data = {
"mac": status["hardware"]["mac"],
"name": init_info["routername"],
"name": init_info["routername"] if "routername" in init_info else None,
"manufacturer": DEFAULT_MANUFACTURER,
"model": init_info["model"],
"sw_version": init_info["romversion"],
"model": init_info["model"] if "model" in init_info else None,
"sw_version": init_info["romversion"] if "romversion" in init_info else None,
}

self._data["sensor"]["uptime"] = str(timedelta(seconds = int(float(status["upTime"]))))
Expand Down
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": "1.0.1",
"version": "1.0.2",
"documentation": "https://github.com/dmamontov/hass-miwifi",
"config_flow": true,
"requirements": [],
Expand Down

0 comments on commit 4074347

Please sign in to comment.