From 86c605a30f283e43500cdbb5a789cbf55788eb10 Mon Sep 17 00:00:00 2001 From: Flavio De Stefano Date: Thu, 1 Aug 2024 13:30:30 +0200 Subject: [PATCH] Fixing led struct --- src/tapoCamera.ts | 6 ++---- src/types/tapo.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/tapoCamera.ts b/src/tapoCamera.ts index cf37f36..fbdf792 100644 --- a/src/tapoCamera.ts +++ b/src/tapoCamera.ts @@ -650,10 +650,8 @@ export class TAPOCamera extends OnvifCamera { { method: "getLedStatus", params: { - led_status: { - config: { - enabled: "on", - }, + led: { + name: "config", }, }, }, diff --git a/src/types/tapo.ts b/src/types/tapo.ts index 2f86491..3a0933c 100644 --- a/src/types/tapo.ts +++ b/src/types/tapo.ts @@ -42,10 +42,8 @@ export type TAPOCameraGetRequest = | { method: "getLedStatus"; params: { - led_status: { - config: { - enabled: "on" | "off"; - }; + led: { + name: "config"; }; }; };