Skip to content

fix: use supported device registry lookups (fixes #352) - #361

Open
Sivadheeraj5356 wants to merge 4 commits into
OpenEPaperLink:mainfrom
Sivadheeraj5356:fix/device-registry-deprecations
Open

Sivadheeraj5356 wants to merge 4 commits into
OpenEPaperLink:mainfrom
Sivadheeraj5356:fix/device-registry-deprecations

Conversation

@Sivadheeraj5356

Copy link
Copy Markdown

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.

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'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HA 2026.09 Beta asks me to write a report here and the open repairs counter too.

1 participant