iCloud failed to setup
See original GitHub issueThe problem
The iCloud integration isn’t working anymore
What version of Home Assistant Core has the issue?
2022.5.0b1
What was the last working version of Home Assistant Core?
2022.4.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Apple icloud
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: pyicloud.base
Source: /usr/local/lib/python3.9/site-packages/pyicloud/base.py:188
First occurred: 9:58:50 AM (2 occurrences)
Last logged: 9:58:50 AM
Authentication required for Account. (421)
Authentication required for Account. (450)
Logger: homeassistant.config_entries
Source: components/icloud/account.py:139
First occurred: 9:58:53 AM (1 occurrences)
Last logged: 9:58:53 AM
Error setting up entry *emailaddress* for icloud
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/icloud/__init__.py", line 96, in async_setup_entry
await hass.async_add_executor_job(account.setup)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/icloud/account.py", line 139, in setup
api_devices = self.api.devices
File "/usr/local/lib/python3.9/site-packages/pyicloud/base.py", line 543, in devices
return FindMyiPhoneServiceManager(
File "/usr/local/lib/python3.9/site-packages/pyicloud/services/findmyiphone.py", line 26, in __init__
self.refresh_client()
File "/usr/local/lib/python3.9/site-packages/pyicloud/services/findmyiphone.py", line 34, in refresh_client
req = self.session.post(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pyicloud/base.py", line 131, in request
return self.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pyicloud/base.py", line 133, in request
self._raise_error(response.status_code, response.reason)
File "/usr/local/lib/python3.9/site-packages/pyicloud/base.py", line 189, in _raise_error
raise api_error
pyicloud.exceptions.PyiCloudAPIResponseException: Authentication required for Account. (450)
Additional information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11
Top Results From Across the Web
how to solve "Verification Failed!… | Apple Developer Forums
Go to appleid.apple.com, edit & disable the two-factor authentication in security. Signout from icloud in phone and re-login..works!!! Posted 5 ...
Read more >Error Connecting Apple ID, Verification Failed. How-To Fix
Go to Settings > Apple ID > iCloud > iCloud Backup · Toggle it off, confirm by pressing OK · Turn iCloud Backup...
Read more >How do I fix an authentication error with my iCloud account?
Go to Settings > iCloud. · Tap your Apple ID > Password & Security. · Tap Turn on Two-Factor Authentication. · Tap Continue....
Read more >9 Common iCloud Problems for iPhone and iPad (And How to ...
1. Cannot Connect to iCloud · Go to Settings > [Your Name]. · Scroll down and tap Sign Out. · If prompted, enter...
Read more >When I connect iCloud, I have an error "You need to enable ...
To resolve this error, you need to check the settings on the device itself and on your Mac (if you have one). Device...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same here, it used to be finicky before, and sometimes I had to remove and reinstall the extension a few times in order to get to the screen that allows me to input the 2FA code. Now it seems there is no way to get it to pop up anymore. 🤔
Same here. Funnily enough, it’ll even accept my app-specific password from iCloud, but it stops working after one day.
I remember having to delete and re-add the integration after a few months, because Apple would start nagging me on all devices with their stupid 2fa prompt that I couldn’t enter anywhere in HA.