Add black support (#1101)

This commit is contained in:
Pascal Vizeli
2019-05-27 12:35:06 +02:00
committed by GitHub
parent 496cee1ec4
commit b4665f3907
46 changed files with 964 additions and 791 deletions

View File

@@ -59,7 +59,8 @@ class DockerAddon(DockerInterface):
# Extract IP-Address
try:
return ip_address(
self._meta["NetworkSettings"]["Networks"]["hassio"]["IPAddress"])
self._meta["NetworkSettings"]["Networks"]["hassio"]["IPAddress"]
)
except (KeyError, TypeError, ValueError):
return ip_address("0.0.0.0")