Răsfoiți Sursa

Rename argument to async_set_humidity

Frontend uses keyword arguments, so the argment name has to match
Jason Rumney 4 ani în urmă
părinte
comite
014286e7ce
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      custom_components/tuya_local/generic/humidifier.py

+ 2 - 2
custom_components/tuya_local/generic/humidifier.py

@@ -139,11 +139,11 @@ class TuyaLocalHumidifier(HumidifierEntity):
             return DEFAULT_MAX_HUMIDITY
         return self._humidity_dps.range["max"]
 
-    async def async_set_humidity(self, target_humidity):
+    async def async_set_humidity(self, humidity):
         if self._humidity_dps is None:
             raise NotImplementedError()
 
-        await self._humidity_dps.async_set_value(self._device, target_humidity)
+        await self._humidity_dps.async_set_value(self._device, humidity)
 
     @property
     def mode(self):