Browse Source

Update fan.py (#769)

line 184: def direction(self):  change to def current_direction(self):
LamBao90 4 năm trước cách đây
mục cha
commit
09bda5f25f
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  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
         return self._oscillating
 
 
     @property
     @property
-    def direction(self):
-        """Return the oscillation state."""
+    def current_direction(self):
+        """Return the direction state."""
         return self._direction
         return self._direction
 
 
     @property
     @property