UNPKG

dirigera

Version:

A TypeScript client for IKEA's DIRIGERA smart home hub

16 lines (15 loc) 423 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (got) => { return { async status() { return await got.get(`hub/status`).json(); }, async checkFirmwareUpdate() { await got.put(`hub/ota/check`).json(); }, async installFirmwareUpdate() { await got.put(`hub/ota/update`).json(); }, }; };