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

Alarmo - Error setting up entry Alarmo for alarmo #1101

Open
2 tasks done
SOCMO2206 opened this issue Jan 18, 2025 · 1 comment
Open
2 tasks done

Alarmo - Error setting up entry Alarmo for alarmo #1101

SOCMO2206 opened this issue Jan 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@SOCMO2206
Copy link

SOCMO2206 commented Jan 18, 2025

Checklist

  • I am using the latest version of Alarmo (latest version can be found here)
  • I checked for similar existing requests (both open and closed) before posting.

Alarmo Version

v1.0.7

HA Version

2025.1.2

Bug description

Hello guys,

I have made a new install of hachs then Alarmo and when I want to configure Alarmo I have an error and this is what I have in the log session; after a check on the different issues and forum I haven't find anything:

Thanks a lot for your help and answer

Have a great day.

Steps to reproduce

On a fresh new install.

Relevant log output

Error setting up entry Alarmo for alarmo

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entrPasswordy(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alarmo/__init__.py", line 57, in async_setup_entry
    store = await async
/usr/src/homeassistant/homeassistant/config_entries.pyt_registry(hass)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alarmo/store.py", line 681, in async_get_registry
    return cast(AlarmoStorage, await task)
                               ^^^^^^^^^^
KeyError: 'sensor_groups'
@SOCMO2206 SOCMO2206 added the bug Something isn't working label Jan 18, 2025
@Melm56
Copy link

Melm56 commented Feb 26, 2025

Hello all,
I've the same problem.

Alarmo Version : v1.10.7

Core : 2025.2.5
Supervisor : 2025.02.1
Operating System : 14.2
Interface utilisateur : 20250221.0

2025-02-26 16:26:01.629 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Alarmo for alarmo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alarmo/__init__.py", line 57, in async_setup_entry
    store = await async_get_registry(hass)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alarmo/store.py", line 681, in async_get_registry
    return cast(AlarmoStorage, await task)
                               ^^^^^^^^^^
  File "/config/custom_components/alarmo/store.py", line 676, in _load_reg
    await registry.async_load()
  File "/config/custom_components/alarmo/store.py", line 306, in async_load
    data = await self._store.async_load()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 289, in async_load
    result = await self._async_load()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 309, in _async_load
    return await self._async_load_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 412, in _async_load_data
    stored = await self._async_migrate_func(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        data["version"], data["minor_version"], data["data"]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/config/custom_components/alarmo/store.py", line 284, in _async_migrate_func
    for sensorGroup in data["sensor_groups"]

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

2 participants