Sfoglia il codice sorgente

valve: fix copy/paste in last change

Jason Rumney 1 anno fa
parent
commit
3dc784392c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      custom_components/tuya_local/valve.py

+ 2 - 2
custom_components/tuya_local/valve.py

@@ -70,8 +70,8 @@ class TuyaLocalValve(TuyaLocalEntity, ValveEntity):
     def reports_position(self):
         """If the valve is an integer, it reports position."""
         return self._valve_dp.type is int or (
-            self._valve_dp.values(device)
-            and self._valve_dp.values(device)[0] is int
+            self._valve_dp.values(self._device)
+            and self._valve_dp.values(self._device)[0] is int
         )
 
     @property