瀏覽代碼

camera: typo in is_on

Issue #759
Jason Rumney 2 年之前
父節點
當前提交
ac4515db18
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/camera.py

+ 1 - 1
custom_components/tuya_local/camera.py

@@ -68,7 +68,7 @@ class TuyaLocalCamera(TuyaLocalEntity, CameraEntity):
     def is_on(self):
         """Return the power state of the camera"""
         if self._switch_dp:
-            return self._switch_dp.get_value(self.device)
+            return self._switch_dp.get_value(self._device)
 
     async def async_turn_off(self):
         """Turn off the camera"""