Use /core/ instead of /api/ when connecting to supervisor directly
This commit is contained in:
@@ -106,6 +106,9 @@ Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assista
|
||||
-->
|
||||
|
||||
## Changelog
|
||||
### **WORK IN PROGRESS**
|
||||
* (@klein0r) Use /core/ instead of /api/ when connecting to supervisor directly (e.g. in ha app)
|
||||
|
||||
### 2.0.3 (2026-04-02)
|
||||
* (@GermanBluefox) Adapter was updated and migrated to TypeScript
|
||||
* (@Titanium177) Added roles for states and added debouncing for reading states from hass
|
||||
|
||||
+1
-1
@@ -228,7 +228,7 @@ export default class HASS extends EventEmitter {
|
||||
}
|
||||
|
||||
this.socket = new WebSocket(
|
||||
`ws${this.options.secure ? 's' : ''}://${this.options.host}:${this.options.port}/api/websocket`,
|
||||
`ws${this.options.secure ? 's' : ''}://${this.options.host}:${this.options.port}/${this.options.host === 'supervisor' ? 'core' : 'api'}/websocket`,
|
||||
{ perMessageDeflate: false },
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user