-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor device components #42
Conversation
Changes Unknown when pulling 3b7b34b on chore-refactor-device-components into * on dev*. |
I have tested it with my custom switch platform. It works well, I only had to change a few lines of code to get it working (switch device_discovery with setup_platform and have the devices added by the callback function). |
fb70dff
to
0004700
Compare
Just added some code that makes it backwards compatible and issue a warning that you should update the component:
|
Adds a common base for the four components that handle devices: thermostat, light, switch, sensor.