mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
Fix KeyError in connectivity_enabled (#2336)
This commit is contained in:
parent
0c55bf20fc
commit
6245b6d823
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user