twrecked / hass-aarlo

Asynchronous Arlo Component for Home Assistant
GNU Lesser General Public License v3.0
394 stars 78 forks source link

Error on setting up Aarlo please help. solved #994

Open platini76 opened 1 month ago

platini76 commented 1 month ago

Registratore: homeassistant.config_entries Fonte: /usr/src/homeassistant/homeassistant/config_entries.py:688 Prima occorrenza: 19:14:08 (1 occorrenze) Ultima registrazione: 19:14:08

Error setting up entry Aarlo for info@ooo.oot for aarlo Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aarlo/init.py", line 241, in async_setup_entry await cfg.async_load_and_merge(entry.data, entry.options) File "/config/custom_components/aarlo/cfg.py", line 389, in async_load_and_merge await self._async_load() File "/config/custom_components/aarlo/cfg.py", line 365, in _async_load self._main_config.update(config.get(COMPONENT_DOMAIN, {})) ^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'

Dan1jel commented 1 month ago

Solved? How? Explanation is appreciated.

twrecked commented 1 month ago

I'm guessing a broken/non-existing aarlo.yaml file. Can you post yours here?

I'll beef up the code to catch this error.

Dan1jel commented 1 month ago

I'm guessing a broken/non-existing aarlo.yaml file. Can you post yours here?

I'll beef up the code to catch this error.

Yes that was probably the cause. I deleted my "config" from the UI, and added a new one, the it works.

My old one was imported so might be an issue from last HA update

platini76 commented 1 month ago

I really don't know how I solve.. :(