litinoveweedle / SmartIR

⏻ Control Home Assistant climate, fan, media_player and light devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome, ZHA)
MIT License
86 stars 28 forks source link

Update fan.py #26

Closed gurglingtonic closed 3 months ago

gurglingtonic commented 3 months ago

Fix warning:-

SUPPORT_SET_SPEED was used from smartir, this is a deprecated constant.. Use FanEntityFeature.SET_SPEED instead..

SUPPORT_DIRECTION was used from smartir, this is a deprecated constant.. Use FanEntityFeature.DIRECTION instead..

SUPPORT_OSCILLATE was used from smartir, this is a deprecated constant.. Use FanEntityFeature.OSCILLATE instead..

litinoveweedle commented 3 months ago

Hello, thank you for the finding and the PR.

I would prefer to replace old constant names by the new enum FanEntityFeature in the whole code. May I ask you to refactor the PR? Or I can prepare PR myself, I would keep you as contributor in any case. ;-)