HAsmartirrigation icon indicating copy to clipboard operation
HAsmartirrigation copied to clipboard

zone entities are duplicated on integration reload

Open bulburDE opened this issue 9 months ago • 9 comments

What happened?

I've had the same behaviour as in #364. Each zone had two sensor entities. e.g. my zone "Vorgarten" had the entities sensor.smart_irrigation_vorgarten and sensor.smart_irrigation_vorgarten_2.

I tried to reproduce it and noticed that they duplicate when I click on "Reload" in the integration. Interestingly, after each reload there is on more entity added than before. I clicked on reload and the number of entities for one zone increased from 17 to 23. The next time I reloaded the integration it went from 24 to 30.

After a restart all entities other than the main one are unavailable with the message This entity is no longer being provided by the smart_irrigation integration. If the entity is no longer in use, delete it in settings.

image

I assume that it is not only triggered by manually reloading the integration because I don't recall doing this before I first noticed that I had each entity twice.

The zones are only once in the smart_irrigation storage. config_entry-smart_irrigation-55a83ca033886c56dae74c7dfafdb914.json

How to reproduce

Settings->Devices & Services -> Integrations -> Smart irrigation -> Three dots -> Reload

Relevant log output

No response

Which version are you running?

v2024.4.3

Diagnostics file

  • [X] I have attached a diagnostics file

Additional information

No response

bulburDE avatar May 19 '24 05:05 bulburDE