question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Home Assistant 2021.3.0 breaks Magic Areas

See original GitHub issue

Just installed the latest 2021.3.0 version of HA. This breaks Magic Areas with the following error in the logs:

Logger: homeassistant.setup
Source: custom_components/magic_areas/__init__.py:63
First occurred: 12:12:17 AM (1 occurrences)
Last logged: 12:12:17 AM

Error during setup of component magic_areas
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/config/custom_components/magic_areas/__init__.py", line 63, in async_setup
    areas.append(AreaEntry(name=meta_area, id=meta_area.lower()))
TypeError: __init__() missing 1 required positional argument: 'normalized_name'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
danielbrunt57commented, Mar 4, 2021

I hacked this into __init__.py line #63:

        areas.append(AreaEntry(name=meta_area, normalized_name=meta_area, id=meta_area.lower()))^M

Not sure if it’s correct or not but MA is working again!

4reactions
klatkacommented, Mar 4, 2021

Confirm

Read more comments on GitHub >

github_iconTop Results From Across the Web

2021.3: My Oh My
Introducing My Home Assistant, a new UI for service calls, 100% Fans, Z-Wave JS updates and Supervisor updates.
Read more >
2022.12: It does matter!
See the breaking change in the changelogs of 2022.12: YAML configuration of MQTT entities under the platform key (e.g., light ), which was ......
Read more >
Areas no longer suck! Magic Areas will bring your Areas to ...
Magic Areas will bring your Areas to life with area presence state tracking, aggregations and automations! That seems to have done the trick! ......
Read more >
Category: Release-Notes
2021.12: New configuration menu, the button entity, and gorgeous area cards! ... 0.103: Happy Holidays, Service calls, StarLine, GeoNet NZ and Proxmox.
Read more >
Full Changelog for Home Assistant Core 2022.3
Full Changelog for Home Assistant Core 2022.3. These are all the changes included in the Home Assistant Core 2202.3 release.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found