We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe458c commit bd1c7a3Copy full SHA for bd1c7a3
1 file changed
esphome/components/midea/climate.py
@@ -30,7 +30,7 @@
30
UNIT_PERCENT,
31
UNIT_WATT,
32
)
33
-from esphome.core import coroutine
+from esphome.core import CORE, coroutine
34
35
CODEOWNERS = ["@dudanov"]
36
DEPENDENCIES = ["climate", "uart"]
@@ -290,4 +290,7 @@ async def to_code(config):
290
if CONF_HUMIDITY_SETPOINT in config:
291
sens = await sensor.new_sensor(config[CONF_HUMIDITY_SETPOINT])
292
cg.add(var.set_humidity_setpoint_sensor(sens))
293
+ # MideaUART library requires WiFi (WiFi auto-enables Network via dependency mapping)
294
+ if CORE.is_esp32:
295
+ cg.add_library("WiFi", None)
296
cg.add_library("MideaUART", None, "https://github.com/rrelande/MideaUART.git#adding-light")
0 commit comments