Skip to content

Commit

Permalink
Esphome compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmister authored Oct 27, 2023
1 parent d5b3894 commit 05bcfbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esphome/components/deep_sleep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ def validate_config(config):
),
cv.Optional(CONF_SLEEP_DURATION): cv.positive_time_period_milliseconds,
cv.Optional(CONF_WAKEUP_PIN): cv.All(
cv.only_on(["esp32", "libretiny"]),
cv.only_on(["esp32", "libretiny", "bk72xx"]),
pins.internal_gpio_input_pin_schema,
validate_pin_number,
),
cv.Optional(CONF_WAKEUP_PIN_MODE): cv.All(
cv.only_on(["esp32", "libretiny"]), cv.enum(WAKEUP_PIN_MODES), upper=True
cv.only_on(["esp32", "libretiny", "bk72xx"]), cv.enum(WAKEUP_PIN_MODES), upper=True
),
cv.Optional(CONF_ESP32_EXT1_WAKEUP): cv.All(
cv.only_on_esp32,
Expand All @@ -212,7 +212,7 @@ def validate_config(config):
),
),
cv.Optional(CONF_WAKEUP_PINS): cv.All(
cv.only_on(["libretiny"]),
cv.only_on(["libretiny", "bk72xx"]),
WAKEUP_PINS_SCHEMA,
),
cv.Optional(CONF_TOUCH_WAKEUP): cv.All(cv.only_on_esp32, cv.boolean),
Expand Down

0 comments on commit 05bcfbd

Please sign in to comment.