mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 19:46:29 +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
|
@property
|
||||||
def connectivity_enabled(self) -> bool:
|
def connectivity_enabled(self) -> bool:
|
||||||
"""Return if connectivity check is enabled."""
|
"""Return if connectivity check is enabled."""
|
||||||
return self.properties[DBUS_ATTR_CONNECTION_ENABLED]
|
return self.properties.get(DBUS_ATTR_CONNECTION_ENABLED, False)
|
||||||
|
|
||||||
@dbus_connected
|
@dbus_connected
|
||||||
def activate_connection(
|
def activate_connection(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user