thomluther / anker-solix-api

Python library for Anker Solix API
MIT License
74 stars 15 forks source link

Standalone device info cleared by update_sites routine #81

Closed thomluther closed 6 months ago

thomluther commented 6 months ago

The update_sites routine is supposed to clear orphaned devices not longer found in the scene info query. However, that cleared also standalone devices from the device details dictionary, leading to unknown sensor entities in Home Assistant integration after next update sites query. Moved the orphaned device cleanup to the get_bind_devices method, which is run with the device details update routine. The device serials found in any scene info will be tracked separately for later lookup and cleanup by the get_bind_devices method.