JohNan / home-assistant-flichub

Custom HomeAssistant integration for FlicHub
MIT License
8 stars 3 forks source link

Convert PLATFORMS to str type to fix schema validation #34

Open zacharee opened 1 month ago

zacharee commented 1 month ago

Fixes https://github.com/JohNan/home-assistant-flichub/issues/33

JohNan commented 1 month ago

Thanks, but I don't think the configuration options has any effect. It looks like I have forgot to remove some kind of template code. The entire configuration can probably be removed.

In any case, I suggest to cast it to a str on line 179 in config_flow instead, because the constant is used elsewhere.

zacharee commented 1 month ago

I checked the other usages, and the Home Assistant API accepts str anywhere it accepts Platform. I'm guessing that's for backwards compatibility.