I’ve noticed a number of errors in my HA log the errors seem to be associated with the Sonos integration. Here’s a clip of the log;
2022-01-10 07:24:18 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 38, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 1016, in update_media
track_info = self.soco.get_current_track_info()
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1827, in get_current_track_info
track.update(_parse_radio_metadata(metadata))
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1817, in _parse_radio_metadata
if title in track["uri"] or title in urllib.parse.unquote(track["uri"]):
TypeError: 'in <string>' requires string as left operand, not NoneType
2022-01-10 07:24:19 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 38, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 1016, in update_media
track_info = self.soco.get_current_track_info()
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1827, in get_current_track_info
track.update(_parse_radio_metadata(metadata))
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1817, in _parse_radio_metadata
if title in track["uri"] or title in urllib.parse.unquote(track["uri"]):
TypeError: 'in <string>' requires string as left operand, not NoneType
2022-01-10 07:24:19 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 38, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 1016, in update_media
track_info = self.soco.get_current_track_info()
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1827, in get_current_track_info
track.update(_parse_radio_metadata(metadata))
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1817, in _parse_radio_metadata
if title in track["uri"] or title in urllib.parse.unquote(track["uri"]):
TypeError: 'in <string>' requires string as left operand, not NoneType
2022-01-10 07:24:19 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 38, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 1016, in update_media
track_info = self.soco.get_current_track_info()
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1827, in get_current_track_info
track.update(_parse_radio_metadata(metadata))
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1817, in _parse_radio_metadata
if title in track["uri"] or title in urllib.parse.unquote(track["uri"]):
TypeError: 'in <string>' requires string as left operand, not NoneType
2022-01-10 07:24:20 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 38, in wrapper
result = funct(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 1016, in update_media
track_info = self.soco.get_current_track_info()
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1827, in get_current_track_info
track.update(_parse_radio_metadata(metadata))
File "/usr/local/lib/python3.9/site-packages/soco/core.py", line 1817, in _parse_radio_metadata
if title in track["uri"] or title in urllib.parse.unquote(track["uri"]):
TypeError: 'in <string>' requires string as left operand, not NoneType
HA Details
System Health
Version core-2021.12.8
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.7
Operating System Family Linux
Operating System Version 5.10.88
CPU Architecture aarch64
Timezone America/Toronto
What are your thoughts? What might be causing these errors?