Pass area control service calls through hass (#25986)

Connection logging
This commit is contained in:
Simon Lamon 2025-06-30 14:59:15 +02:00 committed by Paul Bottein
parent e306e29d95
commit 05a9f69c9e
No known key found for this signature in database

View File

@ -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 { isUnavailableState, UNAVAILABLE } from "../../data/entity";
import type { HomeAssistant } from "../../types";
@ -62,7 +62,7 @@ export const toggleGroupEntities = (
const entitiesIds = states.map((stateObj) => stateObj.entity_id);
callService(hass.connection, domain, service, {
hass.callService(domain, service, {
entity_id: entitiesIds,
});
};