Closed saibotk closed 1 year ago
This fixes the error indeed! This PR should be merged.
In the meantime, I have created a PR in home-assistant to account for this bug:
https://github.com/home-assistant/core/pull/103583
Once the bug is fixed, the changes need to be reverted.
When testing this in Homeassistant with an XT2 Plus, i noticed, that the get_devices() function checks the type by checking if the type is found in the parameter generic_type. But for this to work and check for the type ids used in XT2 etc, we need to fix this to not only check for the first entry in the passed list.
Otherwise Homeassistant throws the following error:
When this is merged, we also need to update the homeassistant integration part, since there are parts where the parameter is passed in a wrong / inconsistent way.
Thank you for your work!