homeassistant-ws
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -34,5 +34,7 @@ /// <reference types="node" /> | ||
on: (eventType: EventType, cb: EventListener) => void; | ||
callService: (domain: string, service: string, extraArgs?: any) => Promise<any>; | ||
callService: (domain: string, service: string, extraArgs?: any, options?: { | ||
returnResponse?: boolean; | ||
}) => Promise<any>; | ||
}; | ||
export default function createClient(callerOptions?: Partial<HassWsOptions>): Promise<HassApi>; | ||
export {}; |
@@ -132,4 +132,7 @@ "use strict"; | ||
}, | ||
callService: function (domain, service, additionalArgs) { | ||
callService: function (domain, service, additionalArgs, options) { | ||
if (additionalArgs === void 0) { additionalArgs = {}; } | ||
if (options === void 0) { options = { | ||
returnResponse: false, | ||
}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -142,2 +145,3 @@ return __generator(this, function (_a) { | ||
service_data: additionalArgs, | ||
return_response: options === null || options === void 0 ? void 0 : options.returnResponse, | ||
}, client)]; | ||
@@ -144,0 +148,0 @@ }); |
{ | ||
"name": "homeassistant-ws", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Client for Homeassistant's websocket API", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24770
327