Closed SeraphimSerapis closed 5 years ago
I had to do some extra work in c7f4cb1 to address an error that appeared when importing constants. Tested and works for me!
Hi @SeraphimSerapis ,
Thanks for this contribute. Looks good. I'll merge it.
Regard, DJ
Description: While validating my Home Assistant configuration, I noticed that the custom component was not discoverable. This threw an error and causes the configuration validation (
hass --script check_config
) to fail:Platform not found: climate.panasonic_ac
.What I changed: It seems like
add_entities(ENTITY, True)
should be used instead ofadd_devices(ENTITY)
. As far as I understand, the boolean value announces the component to Home Assistant.In addition to that, I did some refactoring to comply with the changes in 0.92.