How to troubleshoot `websocket_api` error?

Every time I restart Template Entities in developer tools, i get the following error:

2024-04-25 10:32:55.724 INFO (MainThread) [homeassistant.components.switch] Setting up template.switch
2024-04-25 10:32:55.731 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up template.binary_sensor
2024-04-25 10:32:55.732 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-04-25 10:32:55.769 INFO (MainThread) [homeassistant.components.template.coordinator] Initialized trigger
2024-04-25 10:32:55.773 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-04-25 10:32:55.953 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140312075149376] Invalid option: unavailable (possible options: Home, Night, Away, Vacation, Morning, Evening)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/input_select/__init__.py", line 303, in async_select_option
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Invalid option: unavailable (possible options: Home, Night, Away, Vacation, Morning, Evening)

I tried enabling the debug log for websocket to see what was causing the issue, but it filled up the disk with the log making HA unavailable. As a background, the options in the error are options in an input_select that i use to set house mode automatically. It is not set anywhere in the sensors, but it is used in one automation. Anyhow, not really sure how else to go about troubleshooting this (or even if i should worry about the message).