Skip to content

feat: link the car HA device to the gateway device - #525

Merged
nanomad merged 1 commit into
developfrom
feat/ha-via-device
Nov 13, 2026
Merged

nanomad merged 1 commit into
developfrom
feat/ha-via-device

Conversation

@nanomad

@nanomad nanomad commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Set via_device on each car's Home Assistant device, pointing to the "SAIC Python MQTT Gateway" device. HA then shows "Connected via SAIC Python MQTT Gateway" on the car, with a link to the device that carries the gateway version.
  • Move the gateway device identifier into a shared helper, gateway_device_id(), so the car and gateway devices always use the same value.
  • via_device is left out when no SAIC user is configured.

Tests

  • New tests/integrations/home_assistant/test_discovery_via_device.py.
  • ruff, mypy and the full test suite pass.

Set via_device on the car device so Home Assistant shows it as connected
via the SAIC Python MQTT Gateway device, which carries the gateway
version. The gateway identifier is now built by a shared helper so the
car and gateway devices always agree on it.
@nanomad
nanomad merged commit e330221 into develop Nov 13, 2026
11 checks passed
@nanomad
nanomad deleted the feat/ha-via-device branch November 13, 2026 06:52
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.

1 participant