Skip to content
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

'NoneType' object has no attribute 'loop' on latest update 3.1.4.4 #398

Open
bobvmierlo opened this issue Jan 20, 2025 · 2 comments
Open

Comments

@bobvmierlo
Copy link

bobvmierlo commented Jan 20, 2025

After updating to the latest version 3.1.4.4, iCloud3 won't properly startup and will show this error in the frozen eventlog. Also restarting the integration won't do anything for the eventlog card. I managed to get this error from the logs.
Reverting back to my previously installed version (3.1.4.2) fixed this issue for me.

The error:

01-20 21:14:06 iCloud3 v3.1.4.4
Traceback (most recent call last):
  File "/config/custom_components/icloud3/icloud3_main.py", line 159, in start_icloud3
    start_ic3_control.stage_7_initial_locate()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/config/custom_components/icloud3/support/start_ic3_control.py", line 584, in stage_7_initial_locate
    Device.write_ha_device_tracker_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/config/custom_components/icloud3/device.py", line 1612, in write_ha_device_tracker_state
    self.DeviceTracker.write_ha_device_tracker_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/config/custom_components/icloud3/device_tracker.py", line 647, in write_ha_device_tracker_state
    self.schedule_update_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1260, in schedule_update_ha_state
    self.hass.loop.call_soon_threadsafe(
    ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'loop'

01-20 21:14:06 1stLOC  iCloud3 v3.1.4.4 Initialization Failed
01-20 21:14:18 1stLOC  Mobile App Notify Service has not been set up yet. iCloud3 will retry later.

My Home Assistant info:
Core 2025.1.3
Supervisor 2025.01.0
Operating System 14.0
Frontend 20250109.0

@gcobb321
Copy link
Owner

After installing v3.1.4.4, did you restart HA or Reload iCloud3?
After you got this error, did you try restarting HA?

The _2s are caused by HA creating iCloud3 sensors when it already has some defined in its internal tables and is usually caused by reloading iCloud3. v3.1.4.4 c checks for this and fixes them.

@bobvmierlo
Copy link
Author

I installed the new version via HACS and restarted HA to effectuate the new version. After that the error occured.
I tried to restart iCloud3, which probably created the _2 entities but didnt fix the error. So a HA restart again, but to no avail.
Then I decided to rollback to 3.1.4.2, which is still running fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants