mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
address outstanding items (#2454)
This commit is contained in:
parent
d34dada9d8
commit
963bdcc53c
@ -64,11 +64,10 @@ export const readAttributeValue = (
|
|||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
data: ReadAttributeServiceData
|
data: ReadAttributeServiceData
|
||||||
): Promise<string> => {
|
): Promise<string> => {
|
||||||
const serviceData = {
|
return hass.callWS({
|
||||||
|
...data,
|
||||||
type: "zha/entities/clusters/attributes/value",
|
type: "zha/entities/clusters/attributes/value",
|
||||||
};
|
});
|
||||||
Object.assign(serviceData, data);
|
|
||||||
return hass.callWS(serviceData);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const fetchCommandsForCluster = (
|
export const fetchCommandsForCluster = (
|
||||||
@ -78,7 +77,7 @@ export const fetchCommandsForCluster = (
|
|||||||
clusterId: number,
|
clusterId: number,
|
||||||
clusterType: string
|
clusterType: string
|
||||||
): Promise<Command[]> =>
|
): Promise<Command[]> =>
|
||||||
hass!.callWS({
|
hass.callWS({
|
||||||
type: "zha/entities/clusters/commands",
|
type: "zha/entities/clusters/commands",
|
||||||
entity_id: entityId,
|
entity_id: entityId,
|
||||||
ieee: ieeeAddress,
|
ieee: ieeeAddress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user