jseidl / hass-magic_areas

Areas with batteries included for Home Assistant
MIT License
254 stars 28 forks source link

HA 2023.1.0 | Error during setup of component magic_areas #270

Closed johnjoemorgan closed 1 year ago

johnjoemorgan commented 1 year ago

Supervisor 2022.12.1 Operating System 9.4 Frontend 20230104.0 - latest

After install of latest 2023.1.0 HA version, an error is logged on start-up

` Logger: homeassistant.setup Source: custom_components/magic_areas/init.py:67 Integration: magic_areas (documentation, issues) First occurred: 14:41:26 (1 occurrences) Last logged: 14:41:26 Error during setup of component magic_areas

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 253, in _async_setup_component result = await task File "/config/custom_components/magic_areas/init.py", line 67, in async_setup AreaEntry( TypeError: AreaEntry.init() missing 1 required positional argument: 'aliases' `

pservais commented 1 year ago

Same error here.

pservais commented 1 year ago

Temporary fixed by adding , aliases=meta_area.lower() to line 68 in init.py Probably not the correct solution, but Magic Areas starts correctly with this fix

rjmurillo commented 1 year ago

Related: #265

hyperfive commented 1 year ago

Temporary fixed by adding , aliases=meta_area.lower() to line 68 in init.py Probably not the correct solution, but Magic Areas starts correctly with this fix

This worked for me. Thank you! has someone done a PR on this change?

jseidl commented 1 year ago

Duplicate of #265, will track there

thoppa commented 1 year ago

This needs to make min version 2023.1. Prior versions aren’t fixed