Skip to content

Use via_device_id for charger devices, require HA 2026.8 - #447

Open
rhammen wants to merge 4 commits into
custom-components:masterfrom
rhammen:fix/via-device-id
Open

rhammen wants to merge 4 commits into
custom-components:masterfrom
rhammen:fix/via-device-id

Conversation

@rhammen

@rhammen rhammen commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

This PR replaces the deprecated via_device with via_device_id, which removes the deprecation warning logged on every setup since HA 2026.9.

  • Register the installation device before the charger entities, and link chargers to it by device registry id
  • Raise the minimum HA version to 2026.8, where via_device_id was introduced. This also means Python 3.14, so the 3.13 CI leg is dropped

Fix #428

🤖 Generated with Claude Code

rhammen and others added 2 commits October 26, 2026 22:28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rhammen added a commit to rhammen/zaptec that referenced this pull request Nov 1, 2026
…eatest

- manager.py: keep the charger serial_number alongside via_device_id
- test_init.py: assert via_device_id instead of via_device (custom-components#424 tests)
- requirements_test.txt: drop the py3.13 pytest-homeassistant-custom-component pin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rhammen added a commit to rhammen/zaptec that referenced this pull request Nov 1, 2026
async_get_device is deprecated since HA 2026.9; needs the HA 2026.8 floor (custom-components#447).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rhammen added a commit to rhammen/zaptec that referenced this pull request Nov 1, 2026
async_get_device is deprecated since HA 2026.9; needs the HA 2026.8 floor (custom-components#447).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sveinse sveinse added this to the v0.8.8 milestone Nov 7, 2026
@sveinse sveinse modified the milestones: v0.8.8, v0.9.0 Nov 7, 2026
rhammen and others added 2 commits November 7, 2026 23:06
@rhammen

rhammen commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Merge conflict resolved

rhammen added a commit to rhammen/zaptec that referenced this pull request Nov 8, 2026
…-and-greatest

# Conflicts:
#	tests/test_manager.py
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.

via_device is deprecated — plan for via_device_id (removed in HA 2027.8)

2 participants