diff --git a/tasmota/xdrv_12_home_assistant.ino b/tasmota/xdrv_12_home_assistant.ino index da6f71457..460bfb23e 100644 --- a/tasmota/xdrv_12_home_assistant.ino +++ b/tasmota/xdrv_12_home_assistant.ino @@ -216,7 +216,7 @@ void HassDiscoveryRelays(struct HASS &Hass) Hass.RelPst = devices_present > 0; #ifdef ESP8266 - if (IsModuleIfan()) { iFan = true;} + if (SONOFF_IFAN02 == my_module_type || SONOFF_IFAN03 == my_module_type) { iFan = true;} #endif // ESP8266 if (Light.subtype > LST_RGB) {