This repository was archived by the owner on Sep 11, 2026. It is now read-only.
Fix HA deprecation warnings for device registry - #354
Open
tarzan77cz wants to merge 4 commits into
Open
tarzan77cz wants to merge 4 commits into
tarzan77cz wants to merge 4 commits into
Conversation
- Cast hw_version and sw_version to str (API returns int) - Use async_get_device_by_identifier instead of deprecated async_get_device
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Fixes Home Assistant deprecation warnings reported in the log on every integration load:
sw_version/hw_versionas int — Webasto API returns firmware version as integer; HA device registry requires strings (will break in HA 2026.12.0).device_registry.async_get_device— replaced withasync_get_device_by_identifier(deprecated since HA 2025.x, removed in HA 2027.8.0).Fix detail (2026-09-11)
The initial PR used an incorrect call signature:
Correct for HA 2026.9+:
entryis passed into_async_update_device_registry_namefrom_async_setup.Test plan
homeassistant.helpers.framewarnings forwebastoconnecthw_version/sw_versionstored as strings in device registry_async_update_device_registry_namefinds device by identifier + config entry)Fixes warnings like: