Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made _resolve_device_id more robust when following via_devices (#166)
Fixed that for some users calling E3DC services resulted in a "Device <Device-ID> is no E3DC"-Error. **Root cause:** Other (Non-E3DC) devices from other integrations can be a [via_device](https://developers.home-assistant.io/docs/device_registry_index/) for the E3DC. When introducing the wallbox devices, i added the functionality in _resolve_device_id() to follow the via_device to come from the wallbox to the E3DC Hauskraftwerk. However when following the via_device, there was no additional check if the upstream-device was also in the E3DC domain. This led in my case e.g. that the service tried to call my Fritz!Box. **Fix:** Only follow the via_device if it's type is also E3DC.
- Loading branch information