From fdb0e69f822a94d8619b49e95325362797599e5d Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 1 Jan 2024 17:03:40 +0100 Subject: [PATCH] fixed bluetooth attr formatting --- custom_components/easy_computer_manager/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/easy_computer_manager/utils.py b/custom_components/easy_computer_manager/utils.py index a0ca5a7..5b128f7 100644 --- a/custom_components/easy_computer_manager/utils.py +++ b/custom_components/easy_computer_manager/utils.py @@ -526,7 +526,7 @@ def get_bluetooth_devices(connection: Connection, only_connected: bool = False, devices = [device for device in devices if device["connected"] == "yes"] if format_for_hass: - devices = [{"name": device["name"], "mac": device["address"]} for device in devices] + devices = "; ".join([f"{device['name']} ({device['address']})" for device in devices]) return devices else: