diff --git a/homeassistant/components/led_ble/__init__.py b/homeassistant/components/led_ble/__init__.py index d885b3eb950..5c454c6df7c 100644 --- a/homeassistant/components/led_ble/__init__.py +++ b/homeassistant/components/led_ble/__init__.py @@ -6,7 +6,7 @@ from datetime import timedelta import logging import async_timeout -from led_ble import BLEAK_EXCEPTIONS, LEDBLE +from led_ble import BLEAK_EXCEPTIONS, LEDBLE, get_device from homeassistant.components import bluetooth from homeassistant.components.bluetooth.match import ADDRESS, BluetoothCallbackMatcher @@ -27,7 +27,9 @@ _LOGGER = logging.getLogger(__name__) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up LED BLE from a config entry.""" address: str = entry.data[CONF_ADDRESS] - ble_device = bluetooth.async_ble_device_from_address(hass, address.upper(), True) + ble_device = bluetooth.async_ble_device_from_address( + hass, address.upper(), True + ) or await get_device(address) if not ble_device: raise ConfigEntryNotReady( f"Could not find LED BLE device with address {address}" diff --git a/homeassistant/components/led_ble/light.py b/homeassistant/components/led_ble/light.py index a18ab812b19..4a8ff3f01af 100644 --- a/homeassistant/components/led_ble/light.py +++ b/homeassistant/components/led_ble/light.py @@ -48,12 +48,12 @@ class LEDBLEEntity(CoordinatorEntity, LightEntity): """Initialize an ledble light.""" super().__init__(coordinator) self._device = device - self._attr_unique_id = device._address + self._attr_unique_id = device.address self._attr_device_info = DeviceInfo( name=name, model=hex(device.model_num), sw_version=hex(device.version_num), - connections={(dr.CONNECTION_BLUETOOTH, device._address)}, + connections={(dr.CONNECTION_BLUETOOTH, device.address)}, ) self._async_update_attrs() diff --git a/homeassistant/components/led_ble/manifest.json b/homeassistant/components/led_ble/manifest.json index 1dd289daa4d..261d27726e5 100644 --- a/homeassistant/components/led_ble/manifest.json +++ b/homeassistant/components/led_ble/manifest.json @@ -3,7 +3,7 @@ "name": "LED BLE", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/ble_ble", - "requirements": ["led-ble==0.7.1"], + "requirements": ["led-ble==0.8.3"], "dependencies": ["bluetooth"], "codeowners": ["@bdraco"], "bluetooth": [ diff --git a/requirements_all.txt b/requirements_all.txt index 8f171702ced..2bc648329ab 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -968,7 +968,7 @@ lakeside==0.12 laundrify_aio==1.1.2 # homeassistant.components.led_ble -led-ble==0.7.1 +led-ble==0.8.3 # homeassistant.components.foscam libpyfoscam==1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 4614825f9fe..bc8692ee18c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -706,7 +706,7 @@ lacrosse-view==0.0.9 laundrify_aio==1.1.2 # homeassistant.components.led_ble -led-ble==0.7.1 +led-ble==0.8.3 # homeassistant.components.foscam libpyfoscam==1.0