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 GitHub
parent 06b0f9fcaf
commit f338089148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 { 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,
}); });
}; };