mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Update ZHA device websocket API types (#24087)
* Expose routing status from ZHA websocket API * Clean up types a little bit * Lint
This commit is contained in:
parent
4ef3a25479
commit
d0545fe827
@ -11,8 +11,8 @@ export interface ZHADevice {
|
|||||||
available: boolean;
|
available: boolean;
|
||||||
name: string;
|
name: string;
|
||||||
ieee: string;
|
ieee: string;
|
||||||
nwk: string;
|
nwk: number;
|
||||||
lqi: string;
|
lqi: number;
|
||||||
rssi: string;
|
rssi: string;
|
||||||
last_seen: string;
|
last_seen: string;
|
||||||
manufacturer: string;
|
manufacturer: string;
|
||||||
@ -29,6 +29,7 @@ export interface ZHADevice {
|
|||||||
active_coordinator: boolean;
|
active_coordinator: boolean;
|
||||||
signature: any;
|
signature: any;
|
||||||
neighbors: Neighbor[];
|
neighbors: Neighbor[];
|
||||||
|
routes: Route[];
|
||||||
pairing_status?: string;
|
pairing_status?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,6 +41,23 @@ export interface Neighbor {
|
|||||||
relationship: string;
|
relationship: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Route {
|
||||||
|
dest_nwk: string;
|
||||||
|
route_status: RouteStatus;
|
||||||
|
memory_constrained: boolean;
|
||||||
|
many_to_one: boolean;
|
||||||
|
route_record_required: boolean;
|
||||||
|
next_hop: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum RouteStatus {
|
||||||
|
Active = "Active",
|
||||||
|
DiscoveryUnderway = "Discovery_Underway",
|
||||||
|
DiscoveryFailed = "Discovery_Failed",
|
||||||
|
Inactive = "Inactive",
|
||||||
|
ValidationUnderway = "Validation_Underway",
|
||||||
|
}
|
||||||
|
|
||||||
export interface ZHADeviceEndpoint {
|
export interface ZHADeviceEndpoint {
|
||||||
device: ZHADevice;
|
device: ZHADevice;
|
||||||
endpoint_id: number;
|
endpoint_id: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user