Skip to content

Conversation

@cebtenzzre
Copy link
Contributor

Commit dbe57fe ("now possible to set the Hass token with the SUPERVISOR_TOKEN env var") removed a slash in the URL built by the websocket_url and states_api, which is actually needed. Otherwise you get this with the default URL:

2025-11-16 07:00:51.343666 ERROR HASS: 403, message='Invalid response status', url='http://supervisor/coreapi/websocket'

note the coreapi, which is the concatenation of core from the default URL and api from the subpath.

@cebtenzzre cebtenzzre changed the title fix HASS url building Fix HASS url building Nov 16, 2025
@acockburn acockburn requested a review from jsl12 November 16, 2025 14:46
cebtenzzre and others added 6 commits November 30, 2025 14:29
We need a serializer for all fields in the model.
We prefix paths like `/api/states` with a slash even though they're
relative in practice, not absolute. It's simpler to always append to the
path and lstrip the leading slash from the endpoint.
@acockburn acockburn merged commit f680f7c into AppDaemon:dev Nov 30, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants