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 config flow to iCloud #28968
Add config flow to iCloud #28968
Conversation
f4021d2
to
5702452
Compare
74c3fdd
to
8df4d76
Compare
I've updated the description to follow the added breaking changes : the location of the iCloud cookie folder + the deletion of the reset service |
Do the tests need updating to not do I/O? |
@MartinHjelmare : Yep, I'm working on it right now. Hope to make it work for 0.103.0 😄 |
Why not patch the service class as we talked about above? |
Ok, just working in my computer, pushing |
@MartinHjelmare : What do you think of e2d040eb06514eb8ac369f549495b906b508e326 ? |
33ac49d
to
fc02053
Compare
What is the state of the PR now ? |
There seems to be one line in the config flow that isn't covered by tests: |
- add config flow + tests - fix existing services - add play_sound & display_message services - document services - can use devices with the same name - prepare to add sensor platform
fc02053
to
33079eb
Compare
Got the 100% code coverage 😉 |
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:
The iCloud component leaves the device_tracker platform to become an integration.
From:
To:
Here are all the services :
SERVICE_ICLOUD_PLAY_SOUND = "play_sound"
SERVICE_ICLOUD_DISPLAY_MESSAGE = "display_message"
SERVICE_ICLOUD_LOST_DEVICE = "lost_device"
SERVICE_ICLOUD_UPDATE = "update"
Some services are renamed :
'icloud_lost_device' --> 'lost_device'
'icloud_update' --> 'update'
'icloud_reset' is removed
The iCloud cookie folder moved from
[HA_dir]/icloud
to[HA_dir]/.storage/icloud
.Description:
Dramatically improve the iCloud integration addition UX with config flow, translated steps (will do),
and list selection while choosing the trusted device (instead of a number).
It also adds documentation to services, and will fix issues.
Following the draft PR #24053 and crowded PR #26590
PR doing :
Related issue (if applicable):
fixes #13312
fixes #20195
fixes #28826
Pull request with documentation for home-assistant.io : home-assistant/home-assistant.io#11259
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
.