disable blocking update if bluetooth devices retrieval fails

This commit is contained in:
Mathieu Broillet 2024-06-01 14:44:00 +02:00
parent 601258a6a3
commit d69ec9c352
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -502,7 +502,9 @@ def get_bluetooth_devices(connection: Connection, only_connected: bool = False,
if is_unix_system(connection): if is_unix_system(connection):
result = connection.run(commands["unix"]) result = connection.run(commands["unix"])
if result.return_code != 0: if result.return_code != 0:
raise HomeAssistantError(f"Could not get Bluetooth devices on system running at {connection.host}.") _LOGGER.error(f"Could not get Bluetooth devices on system running at {connection.host}.")
return []
# raise HomeAssistantError(f"Could not get Bluetooth devices on system running at {connection.host}.")
devices = [] devices = []
current_device = {} current_device = {}