Fix: script/ci-custom

This commit is contained in:
limengdu 2024-10-10 11:14:06 +08:00
parent e675f3550b
commit 56ccbc67e4
5 changed files with 5 additions and 5 deletions

View file

@ -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(

View file

@ -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(
{

View file

@ -6,4 +6,4 @@ namespace seeed_mr60fda2 {
void ResetRadarButton::press_action() { this->parent_->reset_radar(); }
} // namespace seeed_mr60fda2
} // namespace esphome
} // namespace esphome

View file

@ -15,4 +15,4 @@ class ResetRadarButton : public button::Button, public Parented<MR60FDA2Componen
};
} // namespace seeed_mr60fda2
} // namespace esphome
} // namespace esphome

View file

@ -3,6 +3,7 @@ from esphome.components import select
import esphome.config_validation as cv
from esphome.const import (
ENTITY_CATEGORY_CONFIG,
CONF_SENSITIVITY,
)
from .. import CONF_MR60FDA2_ID, MR60FDA2Component, mr60fda2_ns
@ -12,7 +13,6 @@ SensitivitySelect = mr60fda2_ns.class_("SensitivitySelect", select.Select)
CONF_INSTALL_HEIGHT = "install_height"
CONF_HEIGHT_THRESHOLD = "height_threshold"
CONF_SENSITIVITY = "sensitivity"
CONFIG_SCHEMA = {
cv.GenerateID(CONF_MR60FDA2_ID): cv.use_id(MR60FDA2Component),