From 9ffd68e71c0e6b5c254e170b38c801886c11a5c1 Mon Sep 17 00:00:00 2001 From: Federico Leoni Date: Thu, 8 Oct 2020 12:19:39 -0300 Subject: [PATCH] Meh... --- tasmota/xdrv_12_home_assistant.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {