core: Version 2021.3 smartthings integration breaks
The problem
When i installed new version yesterday i lost contact with my Smartthings integrations.
I then reverted to version 2021.02.03 and now i got alot of errors like this 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/subscribe 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:46:07 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139838867324592] Received invalid command: supervisor/api 2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.xiaomi_aqara_temp_sensor_temperature_measurement Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/event.py”, line 257, in _async_state_change_dispatcher hass.async_run_hass_job(job, event) File “/usr/src/homeassistant/homeassistant/core.py”, line 435, in async_run_hass_job hassjob.target(*args) File “/usr/src/homeassistant/homeassistant/components/min_max/sensor.py”, line 210, in _async_min_max_sensor_state_listener if new_state.state is None or new_state.state in [ AttributeError: ‘NoneType’ object has no attribute ‘state’ 2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.k_sovrum_temp_temperature_measurement Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/event.py”, line 257, in _async_state_change_dispatcher hass.async_run_hass_job(job, event) File “/usr/src/homeassistant/homeassistant/core.py”, line 435, in async_run_hass_job hassjob.target(*args) File “/usr/src/homeassistant/homeassistant/components/min_max/sensor.py”, line 210, in _async_min_max_sensor_state_listener if new_state.state is None or new_state.state in [ AttributeError: ‘NoneType’ object has no attribute ‘state’ 2021-03-04 23:50:44 ERROR (MainThread) [homeassistant.helpers.event] Error while processing state changed for sensor.rorelse_hall_temperature_measurement Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/event.py”, line 257, in _async_state_change_dispatcher hass.async_run_hass_job(job, event) File “/usr/src/homeassistant/homeassistant/core.py”, line 435, in async_run_hass_job hassjob.target(*args) File “/usr/src/homeassistant/homeassistant/components/min_max/sensor.py”, line 210, in _async_min_max_sensor_state_listener if new_state.state is None or new_state.state in [ AttributeError: ‘NoneType’ object has no attribute ‘state’
What is version of Home Assistant Core has the issue?
core-2021.3.
What was the last working version of Home Assistant Core?
core-2021.2.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Smartthings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings/
Example YAML snippet
# Put your YAML below this line
Anything in the logs that might be useful for us?
# Put your logs below this line
2021-03-04 18:42:14 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: unknown error
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py", line 166, in _async_setup_component
component = integration.get_component()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 491, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/webhook/__init__.py", line 14, in <module>
from homeassistant.util.aiohttp import MockRequest
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/aiohttp.py", line 26, in <module>
class MockRequest:
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/util/aiohttp.py", line 51, in MockRequest
def query(self) -> MultiDict[str]:
TypeError: 'type' object is not subscriptable
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (6 by maintainers)
Thanks @andrewsayre it worked for me also. Keep up the good work.
Regards Charlie
This worked for me. Thanks for pointing that workaround out.