mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 19:31:46 +01:00
Debug component doesn't work on RP2040 (#4728)
This commit is contained in:
parent
e14ce3d950
commit
f3e6a4314f
1 changed files with 23 additions and 20 deletions
|
@ -17,7 +17,8 @@ debug_ns = cg.esphome_ns.namespace("debug")
|
||||||
DebugComponent = debug_ns.class_("DebugComponent", cg.PollingComponent)
|
DebugComponent = debug_ns.class_("DebugComponent", cg.PollingComponent)
|
||||||
|
|
||||||
|
|
||||||
CONFIG_SCHEMA = cv.Schema(
|
CONFIG_SCHEMA = cv.All(
|
||||||
|
cv.Schema(
|
||||||
{
|
{
|
||||||
cv.GenerateID(): cv.declare_id(DebugComponent),
|
cv.GenerateID(): cv.declare_id(DebugComponent),
|
||||||
cv.Optional(CONF_DEVICE): cv.invalid(
|
cv.Optional(CONF_DEVICE): cv.invalid(
|
||||||
|
@ -36,7 +37,9 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
"The 'loop_time' option has been moved to the 'debug' sensor component"
|
"The 'loop_time' option has been moved to the 'debug' sensor component"
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
).extend(cv.polling_component_schema("60s"))
|
).extend(cv.polling_component_schema("60s")),
|
||||||
|
cv.only_on(["esp32", "esp8266"]),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def to_code(config):
|
async def to_code(config):
|
||||||
|
|
Loading…
Reference in a new issue