diff --git a/components/ratgdo/__init__.py b/components/ratgdo/__init__.py index 7aebc34..c559699 100644 --- a/components/ratgdo/__init__.py +++ b/components/ratgdo/__init__.py @@ -1,8 +1,8 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import CONF_ID from esphome import pins from esphome.components import uart +from esphome.const import CONF_ID DEPENDENCIES = ["preferences", "uart"] MULTI_CONF = True @@ -17,7 +17,9 @@ DEFAULT_OUTPUT_GDO = ( "D4" # D4 red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini ) CONF_INPUT_GDO = "input_gdo_pin" -DEFAULT_INPUT_GDO = "D2" # D2 red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini +DEFAULT_INPUT_GDO = ( + "D2" # D2 red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini +) CONF_INPUT_OBST = "input_obst_pin" DEFAULT_INPUT_OBST = "D7" # D7 black obstruction sensor terminal diff --git a/components/ratgdo/binary_sensor/__init__.py b/components/ratgdo/binary_sensor/__init__.py index e0809c5..6e924a3 100644 --- a/components/ratgdo/binary_sensor/__init__.py +++ b/components/ratgdo/binary_sensor/__init__.py @@ -1,8 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import CONF_ID from esphome.components import binary_sensor -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_ID + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"] diff --git a/components/ratgdo/button/__init__.py b/components/ratgdo/button/__init__.py index 087fd95..e74f93b 100644 --- a/components/ratgdo/button/__init__.py +++ b/components/ratgdo/button/__init__.py @@ -1,8 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import CONF_ID from esphome.components import button -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_ID + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"] diff --git a/components/ratgdo/cover/__init__.py b/components/ratgdo/cover/__init__.py index 57093a6..a0a746d 100644 --- a/components/ratgdo/cover/__init__.py +++ b/components/ratgdo/cover/__init__.py @@ -1,9 +1,9 @@ import esphome.codegen as cg -from esphome.const import CONF_ID import esphome.config_validation as cv - from esphome.components import cover -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_ID + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"] diff --git a/components/ratgdo/light/__init__.py b/components/ratgdo/light/__init__.py index 64ed48d..37892bc 100644 --- a/components/ratgdo/light/__init__.py +++ b/components/ratgdo/light/__init__.py @@ -1,10 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import ( - CONF_OUTPUT_ID, # New in 2023.5 -) from esphome.components import light -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_OUTPUT_ID # New in 2023.5 + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"] diff --git a/components/ratgdo/number/__init__.py b/components/ratgdo/number/__init__.py index cf2e440..6e9268b 100644 --- a/components/ratgdo/number/__init__.py +++ b/components/ratgdo/number/__init__.py @@ -1,8 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import CONF_ID from esphome.components import number -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_ID + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"] diff --git a/components/ratgdo/switch/__init__.py b/components/ratgdo/switch/__init__.py index e89b8f9..a827bff 100644 --- a/components/ratgdo/switch/__init__.py +++ b/components/ratgdo/switch/__init__.py @@ -1,8 +1,9 @@ import esphome.codegen as cg import esphome.config_validation as cv -from esphome.const import CONF_ID from esphome.components import switch -from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA +from esphome.const import CONF_ID + +from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child DEPENDENCIES = ["ratgdo"]