Repository navigation
fix: use supported device registry lookups (fixes #352) - #361
Open
Sivadheeraj5356 wants to merge 4 commits into
Open
Sivadheeraj5356 wants to merge 4 commits into
Sivadheeraj5356 wants to merge 4 commits into
Conversation
Added a function to retrieve a device by its identifier from the Home Assistant device registry, with fallback for older versions.
Refactor device entry retrieval to use get_device_by_identifier function and streamline device list retrieval.
These tests ensure that device registry lookups do not use deprecated APIs in Home Assistant and validate the functionality of the custom integration 'open_epaper_link'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #352. Replaces deprecated device-registry lookups and iteration with supported lookups scoped to the config entry, retaining a fallback for older Home Assistant versions. Removes an unused device list and adds regression tests.
Three new tests pass on Home Assistant 2026.10.2 / Python 3.14. The is_ble test reproduces the deprecation on the old code. Eleven existing image-test failures also occur without this change. Other Home Assistant versions were not tested.
AI assistance: this change was prepared with Instinct on my behalf.