diff --git a/esphome/components/seeed_mr60bha2/__init__.py b/esphome/components/seeed_mr60bha2/__init__.py index e1cd56a63d..9febf9f65a 100644 --- a/esphome/components/seeed_mr60bha2/__init__.py +++ b/esphome/components/seeed_mr60bha2/__init__.py @@ -17,7 +17,7 @@ MR60BHA2Component = mr60fda2_ns.class_( "MR60BHA2Component", cg.Component, uart.UARTDevice ) -CONF_MR60BHA2_ID = "mr60fda2_id" +CONF_MR60BHA2_ID = "mr60bha2_id" CONFIG_SCHEMA = ( cv.Schema( diff --git a/esphome/components/seeed_mr60bha2/sensor.py b/esphome/components/seeed_mr60bha2/sensor.py index 7e15e8ddbf..1ba18296e9 100644 --- a/esphome/components/seeed_mr60bha2/sensor.py +++ b/esphome/components/seeed_mr60bha2/sensor.py @@ -4,6 +4,7 @@ import esphome.config_validation as cv from esphome.const import ( DEVICE_CLASS_DISTANCE, UNIT_CENTIMETER, + CONF_DISTANCE, ) from . import CONF_MR60BHA2_ID, MR60BHA2Component @@ -11,7 +12,6 @@ AUTO_LOAD = ["seeed_mr60bha2"] CONF_BREATH_RATE = "breath_rate" CONF_HEART_RATE = "heart_rate" -CONF_DISTANCE = "distance" CONFIG_SCHEMA = cv.Schema( { diff --git a/esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp b/esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp index 5a7569be57..a369617a66 100644 --- a/esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp +++ b/esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp @@ -6,4 +6,4 @@ namespace seeed_mr60fda2 { void ResetRadarButton::press_action() { this->parent_->reset_radar(); } } // namespace seeed_mr60fda2 -} // namespace esphome \ No newline at end of file +} // namespace esphome diff --git a/esphome/components/seeed_mr60fda2/button/reset_radar_button.h b/esphome/components/seeed_mr60fda2/button/reset_radar_button.h index 5970f0a978..66780fb8af 100644 --- a/esphome/components/seeed_mr60fda2/button/reset_radar_button.h +++ b/esphome/components/seeed_mr60fda2/button/reset_radar_button.h @@ -15,4 +15,4 @@ class ResetRadarButton : public button::Button, public Parented