thomluther / ha-anker-solix

Home Assistant integration for Anker Solix Power devices
MIT License
296 stars 4 forks source link

Avoid creation or artefact system entities #85

Closed thomluther closed 4 months ago

thomluther commented 4 months ago

System Health details

N/A

Checklist

Describe the issue

The integration creates PPS entities in the System device although there are no PPS configured in the power system. This is because of artefact structures in the Api scene info returned for a power system.

For example, some PPS total fields with values are always included, but not used if no PPS is installed in the system. The same is true for Solarbank total fields that are returned even if not solarbank is installed in the system.

Reproduction steps

add Anker solix integration configuration entry and look at created system entities. There are some created altough no such devices are configured in the system

Debug logs

N/A

Diagnostics dump

No response

thomluther commented 4 months ago

Fixed in 1.3.1 along with a blocking scandir code used in the config dialog for Testmode