From 6245b6d82315a4961705dc97e935e01d95cca727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 3 Dec 2020 21:40:34 +0100 Subject: [PATCH] Fix KeyError in connectivity_enabled (#2336) --- supervisor/dbus/network/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/dbus/network/__init__.py b/supervisor/dbus/network/__init__.py index 1e137eea1..f43e00070 100644 --- a/supervisor/dbus/network/__init__.py +++ b/supervisor/dbus/network/__init__.py @@ -55,7 +55,7 @@ class NetworkManager(DBusInterface): @property def connectivity_enabled(self) -> bool: """Return if connectivity check is enabled.""" - return self.properties[DBUS_ATTR_CONNECTION_ENABLED] + return self.properties.get(DBUS_ATTR_CONNECTION_ENABLED, False) @dbus_connected def activate_connection(