ITADN

HA API Changes Broke buttons/everything

#8Openbishopdynamics 创建于 2025-11-10
B
bishopdynamicscommented
Recent changes in the HomeAssistant API have broken the python `hassapi` package. When the buttons service fails to start, it prevents the rest of the service from working as well. Action items: - fix startup logic to allow buttons service to fail, continue anyway without that functionality - fix hassapi, or migrate to a more actively maintained solution Relevant log output: ``` Log cleared at startup INFO 2025-11-09 06:12:37 PM -0800 [ kiosk: 28 -> __init__()] Initializing Kiosk INFO 2025-11-09 06:12:37 PM -0800 [ config: 336 -> load()] Reading config from: /etc/kiosk/config.json INFO 2025-11-09 06:12:37 PM -0800 [ kiosk: 45 -> start()] Starting Kiosk INFO 2025-11-09 06:12:37 PM -0800 [ mod_buttons: 175 -> __init__()] Initializing Buttons service INFO 2025-11-09 06:12:37 PM -0800 [ mod_buttons: 184 -> start()] Starting Buttons Service WARNING 2025-11-09 06:12:37 PM -0800 [ ha_manager: 79 -> connect()] Failed to connect to HomeAssistant API: 1 validation error for Service name Field required [type=missing, input_value={'service_id': 'create', ... 'multiline': False}}}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing, will retry in 4 seconds (attempt 1) WARNING 2025-11-09 06:12:41 PM -0800 [ ha_manager: 79 -> connect()] Failed to connect to HomeAssistant API: 1 validation error for Service name Field required [type=missing, input_value={'service_id': 'create', ... 'multiline': False}}}}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing, will retry in 4 seconds (attempt 2) ```
0 条评论