mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[midea] Restrict to platforms where MideaUART actually builds (#17613)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
#include "ac_adapter.h"
|
#include "ac_adapter.h"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
// MideaUART
|
// MideaUART
|
||||||
#include <Appliance/AirConditioner/AirConditioner.h>
|
#include <Appliance/AirConditioner/AirConditioner.h>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
#include "esphome/core/automation.h"
|
#include "esphome/core/automation.h"
|
||||||
#include "air_conditioner.h"
|
#include "air_conditioner.h"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
// MideaUART
|
// MideaUART
|
||||||
#include <Appliance/AirConditioner/AirConditioner.h>
|
#include <Appliance/AirConditioner/AirConditioner.h>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
|
|
||||||
// MideaUART
|
// MideaUART
|
||||||
#include <Appliance/ApplianceBase.h>
|
#include <Appliance/ApplianceBase.h>
|
||||||
|
|||||||
@@ -25,11 +25,8 @@ from esphome.const import (
|
|||||||
ICON_POWER,
|
ICON_POWER,
|
||||||
ICON_THERMOMETER,
|
ICON_THERMOMETER,
|
||||||
ICON_WATER_PERCENT,
|
ICON_WATER_PERCENT,
|
||||||
PLATFORM_BK72XX,
|
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
PLATFORM_LN882X,
|
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
STATE_CLASS_MEASUREMENT,
|
STATE_CLASS_MEASUREMENT,
|
||||||
UNIT_CELSIUS,
|
UNIT_CELSIUS,
|
||||||
UNIT_PERCENT,
|
UNIT_PERCENT,
|
||||||
@@ -161,9 +158,6 @@ CONFIG_SCHEMA = cv.All(
|
|||||||
[
|
[
|
||||||
PLATFORM_ESP32,
|
PLATFORM_ESP32,
|
||||||
PLATFORM_ESP8266,
|
PLATFORM_ESP8266,
|
||||||
PLATFORM_BK72XX,
|
|
||||||
PLATFORM_RTL87XX,
|
|
||||||
PLATFORM_LN882X,
|
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(USE_ARDUINO) && !defined(USE_RP2)
|
#if defined(USE_ARDUINO) && !defined(USE_RP2) && !defined(USE_LIBRETINY)
|
||||||
#ifdef USE_REMOTE_TRANSMITTER
|
#ifdef USE_REMOTE_TRANSMITTER
|
||||||
#include "esphome/components/remote_base/midea_protocol.h"
|
#include "esphome/components/remote_base/midea_protocol.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user