mirror of
https://github.com/esphome/esphome.git
synced 2026-09-23 21:14:03 +00:00
[cover] move time_based_cover to its own subdirectory (#15313)
Co-authored-by: Rene <rene@guca.at>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import esphome.codegen as cg
|
||||
|
||||
time_based_ns = cg.esphome_ns.namespace("time_based")
|
||||
|
||||
+2
-1
@@ -11,7 +11,8 @@ from esphome.const import (
|
||||
CONF_STOP_ACTION,
|
||||
)
|
||||
|
||||
time_based_ns = cg.esphome_ns.namespace("time_based")
|
||||
from .. import time_based_ns
|
||||
|
||||
TimeBasedCover = time_based_ns.class_("TimeBasedCover", cover.Cover, cg.Component)
|
||||
|
||||
CONF_HAS_BUILT_IN_ENDSTOP = "has_built_in_endstop"
|
||||
Reference in New Issue
Block a user