mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
gahhf
This commit is contained in:
@@ -99,6 +99,11 @@ function createTransport(deps) {
|
|||||||
if (!enabled) throw new Error('Home Assistant not configured');
|
if (!enabled) throw new Error('Home Assistant not configured');
|
||||||
if (!runtime.connection) throw new Error('Home Assistant not connected');
|
if (!runtime.connection) throw new Error('Home Assistant not connected');
|
||||||
if (!domain || !service) throw new Error('domain and service required');
|
if (!domain || !service) throw new Error('domain and service required');
|
||||||
|
logger.info('Home Assistant outbound service call', {
|
||||||
|
domain: String(domain),
|
||||||
|
service: String(service),
|
||||||
|
serviceData: serviceData && typeof serviceData === 'object' ? { ...serviceData } : serviceData,
|
||||||
|
});
|
||||||
await callService(runtime.connection, String(domain), String(service), serviceData || {});
|
await callService(runtime.connection, String(domain), String(service), serviceData || {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user