core: Error while setting up iCloud platforms for device_tracker & sensors

The problem

The iCloud integration fails to setup under beta 2022.8.0 b2 with the following error:

`Logger: homeassistant.components.device_tracker Source: components/icloud/device_tracker.py:46 Integration: Device tracker (documentation, issues) First occurred: 10:01:31 AM (1 occurrences) Last logged: 10:01:31 AM

Error while setting up icloud platform for device_tracker Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform await asyncio.shield(task) File “/usr/src/homeassistant/homeassistant/components/icloud/device_tracker.py”, line 46, in async_setup_entry account.listeners.append( AttributeError: ‘IcloudAccount’ object has no attribute ‘listeners’ `

and

`Logger: homeassistant.components.sensor Source: components/icloud/sensor.py:31 Integration: Sensor (documentation, issues) First occurred: 10:01:31 AM (1 occurrences) Last logged: 10:01:31 AM

Error while setting up icloud platform for sensor Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform await asyncio.shield(task) File “/usr/src/homeassistant/homeassistant/components/icloud/sensor.py”, line 31, in async_setup_entry account.listeners.append( AttributeError: ‘IcloudAccount’ object has no attribute ‘listeners’ `

What version of Home Assistant Core has the issue?

core-2022.8.0b2

What was the last working version of Home Assistant Core?

core-2022.7.7

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

iCloud

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/icloud/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 39 (3 by maintainers)

Commits related to this issue

Most upvoted comments

You don’t need to comment ‘me too!’ just to receive updates. Please click the ‘Subscribe’ button to the right of the first comment and save us all the notifications.

image

Note: the fix has been merged, and it will be available in 2022.8.3 patch release

I figured out listeners was indeed deleted from line 107 in icloud/account.py

Restart and it’s working for me!

@mehhhhhhhhhhhhhhhhhhhhhhhhhh No need report each version it is still broken. This issue is open at this point. Thanks 👍

Sorry to be a quite noob… but how do I run these commands in proxmox instance?

Use add-on ‘SSH and Web terminal’. Disable ‘Protection Mode’. Run commands as above

I figured out listeners was indeed deleted from line 107 in icloud/account.py

Restart and it’s working for me!

Thank you. Fixed it for me.

Same exact problem. Logger: homeassistant.components.device_tracker Source: components/icloud/device_tracker.py:46 Integration: Device tracker (documentation, issues) First occurred: 8:18:29 PM (1 occurrences) Last logged: 8:18:29 PM

Error while setting up icloud platform for device_tracker Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform await asyncio.shield(task) File “/usr/src/homeassistant/homeassistant/components/icloud/device_tracker.py”, line 46, in async_setup_entry account.listeners.append( AttributeError: ‘IcloudAccount’ object has no attribute ‘listeners’