Fix 'NewIPAddress' error in component fritz (#30210)

* Fix 'NewIPAddress' error in component fritzbox

* Upgrade to fritzconnection 1.2.0
This commit is contained in:
Bas Delfos authored and springstan committed 2020-01-14 09:46:16 +01:00
1 parent 1e3b3ecbe6
commit 0d688faa56
8 files changed
+11 -17

No files matched your search

@@ -1,7 +1,7 @@
"""Support for FRITZ!Box routers."""
import logging
from fritzconnection import FritzHosts # pylint: disable=import-error
from fritzconnection.lib.fritzhosts import FritzHosts
import voluptuous as vol
from homeassistant.components.device_tracker import (
@@ -68,7 +68,7 @@ class FritzBoxScanner(DeviceScanner):
self._update_info()
active_hosts = []
for known_host in self.last_results:
if known_host["status"] == "1" and known_host.get("mac"):
if known_host["status"] and known_host.get("mac"):
active_hosts.append(known_host["mac"])
return active_hosts