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.

Calendar Error after 1.24.0 Update

See original GitHub issue
2022-07-31 12:19:17 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.waste_collection_schedule.calendar
Traceback (most recent call last):
  File "/srv/ha/lib/python3.9/site-packages/homeassistant/loader.py", line 618, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/srv/ha/lib/python3.9/site-packages/homeassistant/loader.py", line 635, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/homeassi/.homeassistant/custom_components/waste_collection_schedule/calendar.py", line 118, in <module>
    def calc_unique_calendar_id(scraper: Scraper, type: str | None = None):
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
2022-07-31 12:19:17 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform waste_collection_schedule.calendar: Platform not found (Exception importing custom_components.waste_collection_schedule.calendar).

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tastymeatballcommented, Aug 6, 2022

Changing line 118 from def calc_unique_calendar_id(scraper: Scraper, type: str | None = None): to def calc_unique_calendar_id(scraper: Scraper, type: str = None): fixes the problem for me

0reactions
luebbecommented, Aug 17, 2022

Thanks for the info. I was still on HA 2022.6 in Docker. Upgraded to 2022.8 and now everything is fine. I’m glad I got out of Python version hell by switching to HA Docker a year or two ago.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Mojave: VSCode requests access to Contacts ... - GitHub
VSCode Version: 1.24.0 OS Version: 10.14 (MacOS Mojave) Steps to Reproduce: Give it few ... After an hour it was asking permission to...
Read more >
Fix problems importing - Google Calendar Help
If you're getting an error while importing information into Google Calendar, or if the results look wrong, use the tips below to help...
Read more >
Problem after upgrading to v1.24 - fixed - Discuss Kubernetes
now I have upgraded to 1.24.0 and cannot start kubelet. this is the configuration for the service: /etc/systemd/system/kubelet.service.d/10 ...
Read more >
View: Calendar - WeatherBlox | AerisWeather
The Calendar component displays past daily summaries alongside extended forecast information for the requested month at a particular location in a calendar ......
Read more >
Google Cloud release notes | Documentation
The following release notes cover the most recent changes over the last 60 days. For a comprehensive list of product-specific release notes, see...
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