[BUG] assert self.hass is not None after upgrading to HA 0.112.0
See original GitHub issueEnvironment
- ShellyForHASS release with the issue: 0.1.8
- Last working ShellyForHASS release (if known): It worked great with ShellyForHASS 0.1.8 and Home assistant 0.111.x
- Home Assistant Core release with the issue: 0.112.0
- Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant running on rPi
Describe the bug
Something seems to have changed in HA 0.112.0 regarding the hass object. I get this error below in the Shelly component.
Steps to Reproduce
Upgrade to HA 0.112.0 and start Home Assistant.
Expected behavior
Screenshots
Traceback/Error logs
2020-07-02 13:17:53 ERROR (Thread-261) [pyShelly] Error update device status: 5A3890 SHRGBW2, , Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pyShelly/block.py", line 132, in update_status_information
dev.update_status_information(status)
File "/usr/local/lib/python3.7/site-packages/pyShelly/powermeter.py", line 96, in update_status_information
self._update(self.state, info_values=self.info_values)
File "/usr/local/lib/python3.7/site-packages/pyShelly/device.py", line 115, in _update
self.raise_updated()
File "/usr/local/lib/python3.7/site-packages/pyShelly/device.py", line 125, in raise_updated
callback(self)
File "/config/custom_components/shelly/device.py", line 53, in _updated
self.schedule_update_ha_state(True)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 416, in schedule_update_ha_state
assert self.hass is not None
AssertionError
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:25 (7 by maintainers)
Top Results From Across the Web
Bountysource
[BUG] assert self.hass is not None after upgrading to HA 0.112.0. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests...
Read more >python - assert self.selection is not None, "Field %s without ...
It throws an error of (assert self.selection is not None, "Field %s without selection" % self) (AssertionError: Field ...
Read more >Dr. Warren E. Farb Part II - Dr. Do - Institute of Public Utilities
This report was prepared for The National Regulatory Research. Institute (NRRI) under contract No. EC-77-C-Ol-8683 with the U.s..
Read more >Full text of "Financial Times , 1996, UK, English"
Mr Hezschel Post, chief execu- tive, said the bank was not try- ing to weed ... shelved all Investment plans in pastern Ger-...
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
Nothing related to protocol or firmware. Plugin needs to be updated to follow HA best practice to create entity interfaces.
Simone
https://github.com/StyraHem/ShellyForHASS/issues/516#issuecomment-767533372