Comments (6)
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')
from lutron-caseta-pro.
I was able to fix the import problem by squeezing all the code into one file, but after that all my platforms are broken:
2018-05-05 16:08:06 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform lutron_caseta_pro
Traceback (most recent call last):
File "/home/neal/dev/src/home-assistant/homeassistant/helpers/entity_platform.py", line 125, in _async_setup_platform
task = async_create_setup_task()
File "/home/neal/dev/src/home-assistant/homeassistant/helpers/entity_platform.py", line 90, in async_create_setup_task
None, platform.setup_platform, hass, platform_config,
AttributeError: module 'light.lutron_caseta_pro' has no attribute 'setup_platform'
I tried changing my async_setup_platform
to setup_platform
and removing the asyncio but it still doesn't work.
I don't know what they have been doing in the Home Assistant code, but it broke everything. :(
from lutron-caseta-pro.
Looks like there's another PR with fixes related to the custom_components fix, not sure if it will help in this case or not: home-assistant/core#14317
from lutron-caseta-pro.
Anybody try the released version of 0.69? Does it break this component?
from lutron-caseta-pro.
The custom_component changes to HomeAssistant were reverted, so this component is working again on the released 0.69 version.
from lutron-caseta-pro.
Then close this issue ;)
from lutron-caseta-pro.
Related Issues (20)
- Are the instructions out of date. HOT 1
- Several depreciation warnings in HA 0.110
- Unable to prepare setup for platform lutron_caseta_pro.cover: Platform not found (cannot import name 'CoverEntity' from 'homeassistant.components.cover' HOT 4
- Invalid config error after updating HOT 2
- Controlling lamp dimmer as two separate switches/lights HOT 2
- Read/create events for switches, dimmers and fan switches like pico remotes HOT 2
- Light State Incorrect Occasionally HOT 4
- Any plans to add the motion sensor? HOT 1
- support for `RR-SEL-REP2-BL`? HOT 3
- Cover position shows incorrect state under certain conditons. HOT 6
- Error in casetify.py HOT 1
- Getting failed to call service error when trying to configure component. HOT 9
- fan speeds not lining up or being set correctly
- Lutron Fan Control - fan.set_speed = low does not work HOT 2
- Request: Pico - Double & Long Press Actions HOT 9
- add version to manifest.json HOT 1
- Support new speed percentage targets for fans HOT 6
- This component versus the in-built Lutron component in HA HOT 5
- Warnings in December 2021 HomeAssistant
- Is the built-in integration for Lutron Caséta the long term path forward? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lutron-caseta-pro.