rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.71k stars 530 forks source link

Fan deprecated #1639

Open prodoff opened 5 months ago

prodoff commented 5 months ago

Logger: homeassistant.components.fan Source: helpers/deprecation.py:205 Integration: Ventilateur (documentation, issues) First occurred: 20:05:53 (6 occurrences) Last logged: 20:05:53

SUPPORT_DIRECTION was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.DIRECTION instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues SUPPORT_OSCILLATE was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.OSCILLATE instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues SUPPORT_SET_SPEED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues

berkavil commented 5 months ago

Hallo +1 here, seems to be the same warning, started to appear after the last core update in HA:

Logger: homeassistant.components.fan Source: helpers/deprecation.py:205 Integration: Ventilátor (documentation, issues) First occurred: 12:17:18 (6 occurrences) Last logged: 12:17:18

SUPPORT_DIRECTION was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.DIRECTION instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues SUPPORT_OSCILLATE was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.OSCILLATE instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues SUPPORT_SET_SPEED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please create a bug report at https://github.com/rospogrigio/localtuya/issues

thanks for any info how to solve this. Willy

berkavil commented 5 months ago

PS: I don't have any fans integrated from Tuya - I use Local Tuya integration only for covers (wall switches without position sensors), so this warning is a bit confusing for me...

neildsb commented 5 months ago

duplicate https://github.com/rospogrigio/localtuya/issues/1610

steveockey commented 4 months ago

I'm also getting this warning. I am using the NSPanel blueprint from Blackymas and have found that the fan speed control through the interface has stopped working. Following some testing, I have found that the fan.turn_on service does not respond to speed settings any longer either. If the fan is on and I use the fan.set_speed and provide a percentage that will change the fan speed. Just thought I'd provide this info in case it is linked. Thanks.