jseidl / hass-magic_areas

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

Bug: Home Assistant 2023.1.0b4: TypeError: AreaEntry.__init__() missing 1 required positional argument: 'aliases' #265

Closed ovitters closed 1 year ago

ovitters commented 1 year ago

Describe the bug The magic_areas integration doesn't start/work with 2023.1 beta releases. I get a notification in the 'Notifications' section of HA.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings → Config → Updates
  2. Click on '....' (top right of the screen)
  3. Enable beta channel
  4. Then update to current 2023.1.0 beta release
  5. Obviously, magic_areas should've been enabled via hacs

Expected behavior A clear and concise description of what you expected to happen.

It to start up without an error in the logs.

Screenshots If applicable, add screenshots to help explain your problem.

As text:

Logger: homeassistant.setup
Source: custom_components/magic_areas/__init__.py:67
Integration: magic_areas ([documentation](https://github.com/jseidl/hass-magic_areas/wiki), [issues](https://github.com/jseidl/hass-magic_areas/issues))
First occurred: 12:01:24 (1 occurrences)
Last logged: 12:01:24
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'

As image: image

Additional context Add any other context about the problem here.

https://developers.home-assistant.io/blog/ (didn't notice an announcement but should be here I assume) https://rc.home-assistant.io/blog/2022/12/28/release-20231/#aliases-for-voice-assistants (it mentions something about aliases, but just the user side of it)

pascalmtts commented 1 year ago

When will this be fixed? I updated my HA today and now my whole lights are not working anymore 🙈

johnjoemorgan commented 1 year ago

When will this be fixed? I updated my HA today and now my whole lights are not working anymore 🙈

See issue #270 for temporary fix

jseidl commented 1 year ago

Resolved on latest release, please update