home-assistant-js-websocket
Advanced tools
Comparing version 3.2.4 to 3.2.5
import { Connection } from "./connection"; | ||
import { HassEntity, HassServices, HassConfig } from "./types"; | ||
import { HassEntity, HassServices, HassConfig, HassUser } from "./types"; | ||
export declare const getStates: (connection: Connection) => Promise<HassEntity[]>; | ||
export declare const getServices: (connection: Connection) => Promise<HassServices>; | ||
export declare const getConfig: (connection: Connection) => Promise<HassConfig>; | ||
export declare const getUser: (connection: Connection) => Promise<HassConfig>; | ||
export declare const getUser: (connection: Connection) => Promise<HassUser>; | ||
export declare const callService: (connection: Connection, domain: string, service: string, serviceData?: object | undefined) => Promise<{}>; |
@@ -59,2 +59,6 @@ import { Auth } from "./auth"; | ||
attributes: HassEntityAttributeBase; | ||
context: { | ||
id: string; | ||
user_id: string | null; | ||
}; | ||
}; | ||
@@ -67,3 +71,3 @@ export declare type HassEntityAttributeBase = { | ||
supported_features?: number; | ||
hidden: boolean; | ||
hidden?: boolean; | ||
assumed_state?: boolean; | ||
@@ -85,3 +89,3 @@ device_class?: string; | ||
description: string; | ||
example: string; | ||
example: string | boolean | number; | ||
}; | ||
@@ -96,1 +100,6 @@ }; | ||
}; | ||
export declare type HassUser = { | ||
id: string; | ||
is_owner: boolean; | ||
name: string; | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "Home Assistant websocket client", | ||
@@ -8,0 +8,0 @@ "source": "lib/index.ts", |
@@ -9,3 +9,5 @@ # :aerial_tramway: JavaScript websocket client for Home Assistant | ||
Clone this repository, then go to home-assistant-js-websocket folder and run the following commands: | ||
```bash | ||
yarn install | ||
yarn build | ||
@@ -12,0 +14,0 @@ npx http-server -o |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
213413
431
378