Breaking change
The following methods have been removed from the connection
object and can now be imported individually: conn.getStates()
, conn.getConfig()
, conn.getServices()
, conn.callService()
.
Replace calls with:
import { getServices } from 'home-assistant-js-websocket';
const services = await getServices(conn);