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.

Doesn't work in HomeAssistant 0.69 beta

See original GitHub issue

HomeAssistant 0.69 beta includes a PR that changes the way custom_components load: https://github.com/home-assistant/home-assistant/pull/14211

It looks like this breaks the custom component, as I get the following error with 0.69:

File "/home/hass/custom_components/lutron_caseta_pro.py", line 24, in <module>
    from . import casetify
SystemError: Parent module '' not loaded, cannot perform relative import

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
balloobcommented, May 7, 2018

Custom components should not import from one another. If you want to import other custom components, do this:

# If it's a component
hass.components.casetify.some_method()

# If it's a platfrom
from homeassistant.loader import get_component
platform = get_component(hass, 'light.hue')
0reactions
balloobcommented, May 12, 2018

Then close this issue 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error starting HomeKit on 0.69.1 · Issue #14461 - GitHub
Home Assistant release with the issue: 0.69.1 Last working Home Assistant release (if known): 0.68 Operating environment ...
Read more >
Updated release schedule - Home Assistant
Every new version of Home Assistant seems like a beta release for those who have problems with Home Assistant breaking their configurations that ......
Read more >
Beta testing: cleaning between builds
Reinstall the Home Assistant App from TestFlight (during beta testing), AppStore, Google Play Store or Firebase. Open the app and follow the setup...
Read more >
Category: Release-Notes - Home Assistant
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to...
Read more >
[Solved] Problem upgrading past 0.68.1 - Configuration
Hi, I've been using Hass.io for a while now without issue, but have been having issues ever since the 0.69 beta releases.
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