-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
Add Samsung TV config flow #28306
Add Samsung TV config flow #28306
Conversation
@tulindo For your information. |
Excellent so you choosed to go for the common code. |
ad897a8
to
795962b
Compare
795962b
to
f1f2753
Compare
@MartinHjelmare Don't know if you're the right one, but for me the tests seem ok. Two other tests from a former PR are failing with py36 because of too high log level. Should I fix this here? |
Please fix the existing flaky tests in a separate PR so we can merge that asap. Thanks! |
f1f2753
to
b75d727
Compare
@MartinHjelmare It's working now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The platform setup should use async_setup_entry
as entry point in all cases. We need to consolidate the old setup_platform
into the new async_setup_entry
.
Please move the config validation schema to the component and make it a CONFIG_SCHEMA
instead. Import the config yaml to a config flow.
I haven't looked at the tests yet.
ac536b7
to
df73e80
Compare
@MartinHjelmare Is it correct to remove |
1479e9d
to
955311c
Compare
Let me know when you're happy with testing. |
OK, I think I'll postpone this topic. I'm fine now to merge this finally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! 🎉
Same to you. First I was a bit frustrated that with every commit you find another line to complain about. But after trying to review the code of somebody else I have to say this is really hard work. Thanks for your help. |
Breaking Change:
media_player
with platformsamsungtv
to integrationsamsungtv
.timeout
removed and the default used instead.mac
andbroadcast_address
removed andturn_on_action
added, which is a more general and flexible approach. See the docs for more info.Description:
Add config flow for Samsung TV integration. (next step to split up #26865)
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#11616
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices: