mirror of
https://github.com/esphome/esphome.git
synced 2025-10-14 15:53:48 +01:00
Add support for LN882X Family (with LibreTiny) (#8954)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -20,6 +20,7 @@ from esphome.const import (
|
||||
PLATFORM_ESP32,
|
||||
PLATFORM_ESP8266,
|
||||
PLATFORM_HOST,
|
||||
PLATFORM_LN882X,
|
||||
PLATFORM_RP2040,
|
||||
PLATFORM_RTL87XX,
|
||||
)
|
||||
@@ -661,9 +662,13 @@ class EsphomeCore:
|
||||
def is_rtl87xx(self):
|
||||
return self.target_platform == PLATFORM_RTL87XX
|
||||
|
||||
@property
|
||||
def is_ln882x(self):
|
||||
return self.target_platform == PLATFORM_LN882X
|
||||
|
||||
@property
|
||||
def is_libretiny(self):
|
||||
return self.is_bk72xx or self.is_rtl87xx
|
||||
return self.is_bk72xx or self.is_rtl87xx or self.is_ln882x
|
||||
|
||||
@property
|
||||
def is_host(self):
|
||||
|
Reference in New Issue
Block a user