Skip to content

Commit

Permalink
Fix LED response
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiro committed Aug 1, 2024
1 parent 86c605a commit c66522e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tapoCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export class TAPOCamera extends OnvifCamera {
.notification_enabled === "on",
motionDetection:
motionDetection?.result.motion_detection.motion_det.enabled === "on",
led: led?.result.led_status.config.enabled === "on",
led: led?.result.led.config.enabled === "on",
};
}
}
2 changes: 1 addition & 1 deletion src/types/tapo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export type TAPOCameraResponseGetMotionDetection = {
export type TAPOCameraResponseGetLed = {
method: "getLedStatus";
result: {
led_status: {
led: {
config: {
enabled: "on" | "off";
};
Expand Down

0 comments on commit c66522e

Please sign in to comment.