question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'NoneType' object has no attribute 'get_sorted_alarms

See original GitHub issue

Version of the custom_component

Latest

Configuration

2021-03-21 09:41:29 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 126, in _handle_refresh_interval
    await self.async_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 200, in async_refresh
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 260, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 319, in _async_write_ha_state
    sstate = self.state
  File "/config/custom_components/google_home/sensor.py", line 141, in state
    alarms = self._get_alarms_data()
  File "/config/custom_components/google_home/sensor.py", line 156, in _get_alarms_data
    return self.as_dict(device.get_sorted_alarms())
AttributeError: 'NoneType' object has no attribute 'get_sorted_alarms'

Describe the bug

It does not appear immediately, but shows up after my HA installation have been running for some hours.

@leikoilja Have also had this error show up in his logs

Debug log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DurgNomis-drolcommented, Mar 25, 2021

@leikoilja That is awesome. Just add me and i will test when it is merged! 😄 🚀

I inadvertently solved the it for me when i was testing it. I wont have much time the rest of the week, but will be back after the weekend 😄

2reactions
DurgNomis-drolcommented, Mar 24, 2021

This error only occurs after some time for me. I not 100% where i should log, so it is gonna be some trial and error for me 😄 Will report back when i have more information.

EDIT: I think i have a good idea of what the problem is. Stay tuned for information 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get AttributeError: 'NoneType' object has no attribute ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >
'NoneType' object has no attribute 'GetLayer' geoPDF
AttributeError: 'NoneType' object has no attribute 'GetLayer'. As I understand the above error it means that the proj variable is empty.
Read more >
AttributeError: 'NoneType' object has no attribute ... - GitHub
i am running into the same issue "'NoneType' object has no attribute '_free_weak_ref'" while training yolov5 model on custom data. Any update on ......
Read more >
AttributeError: 'NoneType' object has no attribute 'version_tuple
On CS9 pipeline, Container Build and Image build jobs are failing with following errors: ``` TASK [oooci-build-images : Create temp venv w/ ...
Read more >
Why do I get AttributeError: \'NoneType\' object has no attribute ...
I keep getting an error that says. AttributeError: 'NoneType' object has no attribute 'something'. The code I have is too long to post...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found