From 60da5587d11c5e0ecc55d7b46aac25553f715ae1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 Jan 2026 16:47:58 -1000 Subject: [PATCH] tweak validators --- esphome/components/debug/sensor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/esphome/components/debug/sensor.py b/esphome/components/debug/sensor.py index 7e92f6b6cda..8563ffc59c8 100644 --- a/esphome/components/debug/sensor.py +++ b/esphome/components/debug/sensor.py @@ -12,7 +12,6 @@ from esphome.const import ( ICON_COUNTER, ICON_TIMER, PLATFORM_BK72XX, - PLATFORM_ESP32, PLATFORM_LN882X, PLATFORM_RTL87XX, UNIT_BYTES, @@ -59,8 +58,10 @@ CONFIG_SCHEMA = { ), ), cv.Optional(CONF_MIN_FREE): cv.All( - cv.only_on( - [PLATFORM_ESP32, PLATFORM_BK72XX, PLATFORM_LN882X, PLATFORM_RTL87XX] + cv.Any( + cv.only_on_esp32, + cv.only_on([PLATFORM_BK72XX, PLATFORM_LN882X, PLATFORM_RTL87XX]), + msg="This feature is only available on ESP32 and LibreTiny (BK72xx, LN882x, RTL87xx)", ), sensor.sensor_schema( unit_of_measurement=UNIT_BYTES,