Explorar el Código

camera: typo in is_on

Issue #759
Jason Rumney hace 2 años
padre
commit
ac4515db18
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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):
     def is_on(self):
         """Return the power state of the camera"""
         """Return the power state of the camera"""
         if self._switch_dp:
         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):
     async def async_turn_off(self):
         """Turn off the camera"""
         """Turn off the camera"""