소스 검색

Fix bugs in hvac_action.

Jason Rumney 4 년 전
부모
커밋
588354c058
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      custom_components/tuya_local/generic/climate.py

+ 1 - 2
custom_components/tuya_local/generic/climate.py

@@ -283,8 +283,7 @@ class TuyaLocalClimate(ClimateEntity):
         """Return the current HVAC action."""
         if self._hvac_action_dps is None:
             return None
-        hvac_action = self._hvac_action.get_value(self.device)
-        return hvac_action
+        return self._hvac_action_dps.get_value(self._device)
 
     @property
     def hvac_mode(self):