Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on setting up Aarlo please help. solved #994

Open
platini76 opened this issue Oct 2, 2024 · 4 comments
Open

Error on setting up Aarlo please help. solved #994

platini76 opened this issue Oct 2, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@platini76
Copy link

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 [email protected] 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'

@platini76 platini76 changed the title Error on setting up Aarlo please help. Error on setting up Aarlo please help. solved Oct 2, 2024
@Dan1jel
Copy link

Dan1jel commented Oct 4, 2024

Solved? How? Explanation is appreciated.

@twrecked
Copy link
Owner

twrecked commented Oct 4, 2024

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.

@twrecked twrecked self-assigned this Oct 4, 2024
@twrecked twrecked added the bug Something isn't working label Oct 4, 2024
@Dan1jel
Copy link

Dan1jel commented Oct 4, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants