core: GeniusHub - Recent PR causes local access to fail
The problem
PR - https://github.com/home-assistant/core/pull/122330 - causes an error when starting up HA. My configuration uses local access which stores ip/username/password in the config entry. The change includes setting the unique_id to the Mac address, which is not stored in the config entry.
What version of Home Assistant Core has the issue?
core-2024.11.0b0
What was the last working version of Home Assistant Core?
core-2024.10.0
What type of installation are you running?
Home Assistant Container
Integration causing the issue
GeniusHub
Link to integration documentation on our website
https://www.home-assistant.io/integrations/geniushub/
Diagnostics information
Not available since integration does not load.
Config entry is as below
{
"created_at": "2024-09-29T08:22:53.002715+00:00",
"data": {
"host": "192.168.20.204",
"username": "redacted",
"password": "redacted"
},
"discovery_keys": {},
"disabled_by": null,
"domain": "geniushub",
"entry_id": "01J8YE06TATA2MVAVNH2M3C430",
"minor_version": 1,
"modified_at": "2024-09-29T08:22:53.002719+00:00",
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "user",
"title": "192.168.20.204",
"unique_id": "B8:27:EB:90:F0:FB",
"version": 1
}
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2024-09-29 08:27:03.503 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.20.204 for geniushub
Traceback (most recent call last):
File "/workspaces/core/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/core/homeassistant/components/geniushub/__init__.py", line 181, in async_setup_entry
unique_id = entry.data[CONF_MAC]
~~~~~~~~~~^^^^^^^^^^
KeyError: 'mac'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (22 by maintainers)
I’m a liar, I do have discord, just don’t use it
I’ll be able to test later this evening - uk