ソースを参照

maint(fan): remove obsolete deprecation avoidance

During HA deprecation period we had to explicitly opt-out of the backward
compatibility option to avoid a deprecation warning. Now the deprecation
period has been finished (probably for over a year), it is no longer needed.
Jason Rumney 5 日 前
コミット
8d3452713a
1 ファイル変更0 行追加3 行削除
  1. 0 3
      custom_components/tuya_local/fan.py

+ 0 - 3
custom_components/tuya_local/fan.py

@@ -65,9 +65,6 @@ class TuyaLocalFan(TuyaLocalEntity, FanEntity):
             if r and r[0] == 0:
             if r and r[0] == 0:
                 self._support_flags |= FanEntityFeature.TURN_OFF
                 self._support_flags |= FanEntityFeature.TURN_OFF
 
 
-        # Until the deprecation period ends (expected 2025.2)
-        self._enable_turn_on_off_backwards_compatibility = False
-
     @property
     @property
     def supported_features(self):
     def supported_features(self):
         """Return the features supported by this climate device."""
         """Return the features supported by this climate device."""