Просмотр исходного кода

valve: fix copy/paste in last change

Jason Rumney 1 год назад
Родитель
Сommit
3dc784392c
1 измененных файлов с 2 добавлено и 2 удалено
  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):
     def reports_position(self):
         """If the valve is an integer, it reports position."""
         """If the valve is an integer, it reports position."""
         return self._valve_dp.type is int or (
         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
     @property