Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homeassistant-ws

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homeassistant-ws - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

4

build/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc