mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46: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,
|
||||
data: ReadAttributeServiceData
|
||||
): Promise<string> => {
|
||||
const serviceData = {
|
||||
return hass.callWS({
|
||||
...data,
|
||||
type: "zha/entities/clusters/attributes/value",
|
||||
};
|
||||
Object.assign(serviceData, data);
|
||||
return hass.callWS(serviceData);
|
||||
});
|
||||
};
|
||||
|
||||
export const fetchCommandsForCluster = (
|
||||
@ -78,7 +77,7 @@ export const fetchCommandsForCluster = (
|
||||
clusterId: number,
|
||||
clusterType: string
|
||||
): Promise<Command[]> =>
|
||||
hass!.callWS({
|
||||
hass.callWS({
|
||||
type: "zha/entities/clusters/commands",
|
||||
entity_id: entityId,
|
||||
ieee: ieeeAddress,
|
||||
|
Loading…
x
Reference in New Issue
Block a user