@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
16 lines (15 loc) • 471 B
JavaScript
import { createCollection as s } from "home-assistant-js-websocket";
import { debounce as i } from "lodash";
const t = (e) => e.sendMessagePromise({
type: "config/floor_registry/list"
}), l = (e, r) => e.subscribeEvents(
i(() => t(e).then((o) => r.setState(o, !0)), 500, {
leading: !0,
trailing: !0
}),
"floor_registry_updated"
), n = (e, r) => s("_floorRegistry", t, l, e, r);
export {
n as subscribeFloorRegistry
};
//# sourceMappingURL=floors.js.map