gluap / pyduofern-hacs

Repository managing hacs-integration for pyduofern
MIT License
27 stars 8 forks source link

duofern.sync_devices throws ‘ConfigEntries’ object has no attribute ‘async_setup_platforms’ #42

Closed mkm-gh closed 10 months ago

mkm-gh commented 1 year ago

When starting the service duofern.sync_devices, I get the error

AttributeError: ‘ConfigEntries’ object has no attribute ‘async_setup_platforms’

in /root/config/home-assistant.log

Can someone confirm this and/or provide a solution?

gluap commented 1 year ago

Yeah, can confirm. Workaround would be restarting homeassistant (as a last step after calling sync_devices). It seems that the way to call for re-initialization of a platform has changed.

mkm-gh commented 1 year ago

I can now see the device, but not control it. The manual mode is turned off. All three entities do not react, i.e., e.g., I turn the manual mode on and it turns off automatically.

gluap commented 1 year ago

Sync devices should be fixed with the latest beta version. I'm afraid that does not necessarily fix your second problem though.

mkm-gh commented 1 year ago

Running duofern.sync_devices now throws

ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries-py", line 1385, in async_forward_entry_setup if domain not in self-hass.config. components:
TypeError: unhashable type: 'list'
gluap commented 10 months ago

Sync devices service (non-working) was removed in the latest sources (as it was not working anymore)