diff --git a/custom_components/ble_monitor/config_flow.py b/custom_components/ble_monitor/config_flow.py index 501bf07c..53bbe775 100644 --- a/custom_components/ble_monitor/config_flow.py +++ b/custom_components/ble_monitor/config_flow.py @@ -238,16 +238,16 @@ async def async_step_add_remove_device(self, user_input=None): ) if self._sel_device: # Remove device from device registry - device_registry = self.hass.helpers.device_registry.async_get(self.hass) + devreg = device_registry.async_get(self.hass) conf_key = dict_get_key_or(self._sel_device) key = dict_get_or(self._sel_device).upper() - device = device_registry.async_get_device({(DOMAIN, key)}, set()) + device = devreg.async_get_device({(DOMAIN, key)}, set()) if device is None: errors[conf_key] = "cannot_delete_device" else: _LOGGER.error("Removing BLE monitor device %s from device registry", key) - device_registry.async_remove_device(device.id) + devreg.async_remove_device(device.id) _LOGGER.error(f"Removing BLE monitor device %s from configuration {device}", key) del self._devices[key] return self._show_main_form(errors) @@ -487,7 +487,7 @@ async def async_step_init(self, user_input=None): ) for dev in self.config_entry.options.get(CONF_DEVICES): self._devices[dict_get_or(dev).upper()] = dev - devreg = self.hass.helpers.device_registry.async_get(self.hass) + devreg = device_registry.async_get(self.hass) for dev in device_registry.async_entries_for_config_entry( devreg, self.config_entry.entry_id ): diff --git a/custom_components/ble_monitor/manifest.json b/custom_components/ble_monitor/manifest.json index 9854d489..bdd62e2c 100644 --- a/custom_components/ble_monitor/manifest.json +++ b/custom_components/ble_monitor/manifest.json @@ -1,18 +1,18 @@ { "domain": "ble_monitor", "name": "Passive BLE monitor", - "codeowners": ["@Ernst79", "@Magalex2x14", "@Thrilleratplay"], + "codeowners": ["@Ernst79", "@myhomeiot"], "config_flow": true, "dependencies": [], "documentation": "https://github.com/custom-components/ble_monitor", "iot_class": "local_polling", "issue_tracker": "https://github.com/custom-components/ble_monitor/issues", "requirements": [ - "pycryptodomex>=3.18.0", + "pycryptodomex>=3.19.1", "janus>=1.0.0", "aioblescan>=0.2.14", "btsocket>=0.2.0", "pyric>=0.1.6.3" ], - "version": "12.11.1" + "version": "12.11.2" } diff --git a/hacs.json b/hacs.json index bdb3049b..69b0c533 100644 --- a/hacs.json +++ b/hacs.json @@ -1,4 +1,4 @@ { "name": "Passive BLE monitor integration", - "homeassistant": "2023.11.0" + "homeassistant": "2024.4.0" }