1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-15 01:32:19 +01:00

Add ESP32C3 and ESP32S2 support to dashboard (#3152)

* Add ESP32C3 and ESP32S2 support to dashboard

* Format

* Fix tests
This commit is contained in:
Otto Winter
2022-02-19 15:47:50 +01:00
committed by GitHub
parent b8d10a62c2
commit debcaf6fb7
4 changed files with 50 additions and 19 deletions

View File

@@ -61,8 +61,8 @@ def set_core_data(config):
return config
def get_esp32_variant():
return CORE.data[KEY_ESP32][KEY_VARIANT]
def get_esp32_variant(core_obj=None):
return (core_obj or CORE).data[KEY_ESP32][KEY_VARIANT]
def only_on_variant(*, supported=None, unsupported=None):