mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Pass area control service calls through hass (#25986)
Connection logging
This commit is contained in:
parent
06b0f9fcaf
commit
f338089148
@ -1,4 +1,4 @@
|
|||||||
import { callService, type HassEntity } from "home-assistant-js-websocket";
|
import type { HassEntity } from "home-assistant-js-websocket";
|
||||||
import { computeStateDomain } from "./compute_state_domain";
|
import { computeStateDomain } from "./compute_state_domain";
|
||||||
import { isUnavailableState, UNAVAILABLE } from "../../data/entity";
|
import { isUnavailableState, UNAVAILABLE } from "../../data/entity";
|
||||||
import type { HomeAssistant } from "../../types";
|
import type { HomeAssistant } from "../../types";
|
||||||
@ -62,7 +62,7 @@ export const toggleGroupEntities = (
|
|||||||
|
|
||||||
const entitiesIds = states.map((stateObj) => stateObj.entity_id);
|
const entitiesIds = states.map((stateObj) => stateObj.entity_id);
|
||||||
|
|
||||||
callService(hass.connection, domain, service, {
|
hass.callService(domain, service, {
|
||||||
entity_id: entitiesIds,
|
entity_id: entitiesIds,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user