Yes I believe so sir.
I will update the automation w/ the logger as you suggested.
Updated automation with the before mentioned.
Rebooted Hass instance
2020-07-13 17:10:15 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.140194467126416] Received {'type': 'call_service', 'domain': 'plex_assistant', 'service': 'command', 'service_data': {'command': 'Play Batman on Living Room Chromecast', 'cast_delay': 7}, 'id': 42}
2020-07-13 17:10:15 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=plex_assistant, service=command, service_data=command=Play Batman on Living Room Chromecast, cast_delay=7>
Logger: homeassistant.components.websocket_api.http.connection.140194467126416
Source: custom_components/plex_assistant/helpers.py:42
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 5:08:49 PM (2 occurrences)
Last logged: 5:10:20 PM
generator raised StopIteration
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/fuzzywuzzy/process.py", line 93, in extractWithoutOrder
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1299, in _execute_service
await self._hass.async_add_executor_job(handler.func, service_call)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/plex_assistant/__init__.py", line 127, in handle_input
command = process_speech(command_string, localize, default_cast, PA)
File "/config/custom_components/plex_assistant/process_speech.py", line 25, in process_speech
fuzz_client = fuzzy(control_check, devices)
File "/config/custom_components/plex_assistant/helpers.py", line 42, in fuzzy
return fw.extractOne(media, lib, scorer=scorer)
File "/usr/local/lib/python3.7/site-packages/fuzzywuzzy/process.py", line 245, in extractOne
return max(best_list, key=lambda i: i[1])
RuntimeError: generator raised StopIteration