Skip to content
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

Convert PLATFORMS to str type to fix schema validation #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zacharee
Copy link

Fixes #33

@JohNan
Copy link
Owner

JohNan commented Sep 16, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

voluptuous.error.SchemaError: unsupported schema data type 'Platform'
2 participants