-
-
Notifications
You must be signed in to change notification settings - Fork 35k
Arcam config flow #34384
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
Arcam config flow #34384
Conversation
Note, i've working on resolving some more comments from #29334 |
895b412
to
614d7f5
Compare
I pulled out the device automation code from this pull request, to reduce review size. |
61ca38a
to
d454cf3
Compare
5e53ec1
to
b9378f2
Compare
"name": f"{DEFAULT_NAME} ({self._state.client.host})", | ||
"identifiers": { | ||
(DOMAIN, self._uuid), | ||
(DOMAIN, self._state.client.host, self._state.client.port), |
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.
host and port can change so they aren't stable, so they should likely be removed.
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.
Yes, we can remove it later. Once people have upgraded. Otherwise we would leave these devices unconnected to entities.
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.
Nice job on the test coverage
Please see comments above
----------- coverage: platform linux, python 3.8.1-final-0 -----------
Name Stmts Miss Cover Missing
------------------------------------------------------------------------------------
homeassistant/components/arcam_fmj/config_flow.py 77 0 100%
homeassistant/components/arcam_fmj/const.py 10 0 100%
homeassistant/components/arcam_fmj/device_trigger.py 27 1 96% 70
------------------------------------------------------------------------------------
TOTAL 114 1 99%
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
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.
Looks good!
Breaking change
This completely drops support for YAML based configuration. Remove section from config.
To support turn_on action, you will need to setup an automation based on an exposed event from the integration. This can be accomplished via device actions.
Proposed change
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale: