From 5a5692a2896339ace09ec8cbfd281d491002c393 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 19:10:50 +0000 Subject: [PATCH 1/2] Bump nokogiri from 1.16.2 to 1.16.5 in /docs Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.16.2 to 1.16.5. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.2...v1.16.5) --- updated-dependencies: - dependency-name: nokogiri dependency-type: indirect ... Signed-off-by: dependabot[bot] --- docs/Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 666a9467..b1ed28ec 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -211,9 +211,9 @@ GEM jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) minitest (5.19.0) - nokogiri (1.16.2-x64-mingw-ucrt) + nokogiri (1.16.5-x64-mingw-ucrt) racc (~> 1.4) - nokogiri (1.16.2-x86_64-linux) + nokogiri (1.16.5-x86_64-linux) racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) From 5de2f93c0119f12230c2194d02f576b0d1b04fb2 Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Wed, 15 May 2024 21:23:20 +0200 Subject: [PATCH 2/2] fix more refs to helper --- custom_components/ble_monitor/config_flow.py | 8 ++++---- custom_components/ble_monitor/manifest.json | 6 +++--- hacs.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) 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" }