diff --git a/esphome/components/m5stack_4relay/__init__.py b/esphome/components/m5stack_4relay/__init__.py index 4e712570f3..c0b9cc1e47 100644 --- a/esphome/components/m5stack_4relay/__init__.py +++ b/esphome/components/m5stack_4relay/__init__.py @@ -11,7 +11,7 @@ MULTI_CONF = True CONF_M5STACK_4RELAY_ID = "m5stack_4relay_id" m5stack_4relay_ns = cg.esphome_ns.namespace("m5stack_4relay") -M5Stack_4Relay = m5stack_4relay_ns.class_("M5Stack_4Relay", cg.Component, i2c.I2CDevice) +M5Stack_4Relay = m5stack_4relay_ns.class_("M5Stack4Relay", cg.Component, i2c.I2CDevice) CONFIG_SCHEMA = ( cv.Schema( diff --git a/esphome/components/m5stack_4relay/switch/__init__.py b/esphome/components/m5stack_4relay/switch/__init__.py index 209ef44bc2..7d841ffa97 100644 --- a/esphome/components/m5stack_4relay/switch/__init__.py +++ b/esphome/components/m5stack_4relay/switch/__init__.py @@ -8,7 +8,7 @@ from .. import m5stack_4relay_ns, M5Stack_4Relay, CONF_M5STACK_4RELAY_ID DEPENDENCIES = ["m5stack_4relay"] M5StackSwitch = m5stack_4relay_ns.class_( - "M5Stack_4RelaySwitch", cg.Component, i2c.I2CDevice, switch.Switch + "M5Stack4RelaySwitch", cg.Component, i2c.I2CDevice, switch.Switch ) CONF_INTERLOCK_WAIT_TIME = "interlock_wait_time"