Selaa lähdekoodia

Update fan.py (#769)

line 184: def direction(self):  change to def current_direction(self):
LamBao90 4 vuotta sitten
vanhempi
sitoutus
09bda5f25f
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      custom_components/smartir/fan.py

+ 2 - 2
custom_components/smartir/fan.py

@@ -181,8 +181,8 @@ class SmartIRFan(FanEntity, RestoreEntity):
         return self._oscillating
 
     @property
-    def direction(self):
-        """Return the oscillation state."""
+    def current_direction(self):
+        """Return the direction state."""
         return self._direction
 
     @property