AttributeError: 'NoneType' object has no attribute 'get_sorted_alarms
See original GitHub issueVersion 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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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 😄
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 🚀