[const] Move CONF_TARGET_COUNT to components/const (#18120)

This commit is contained in:
Mustafa KURU
2026-08-06 09:37:36 -04:00
committed by GitHub
parent a16c2e2b04
commit ba86685361
3 changed files with 3 additions and 3 deletions
+1
View File
@@ -37,6 +37,7 @@ CONF_SCAN_PARAMETERS = "scan_parameters"
CONF_SHA256 = "sha256"
CONF_STATE_SAVE_INTERVAL = "state_save_interval"
CONF_STOP_BITS = "stop_bits"
CONF_TARGET_COUNT = "target_count"
CONF_USE_PSRAM = "use_psram"
CONF_VOC_INDEX = "voc_index"
CONF_VOLUME_INCREMENT = "volume_increment"
+1 -1
View File
@@ -1,5 +1,6 @@
import esphome.codegen as cg
from esphome.components import sensor
from esphome.components.const import CONF_TARGET_COUNT
import esphome.config_validation as cv
from esphome.const import (
CONF_ANGLE,
@@ -21,7 +22,6 @@ DEPENDENCIES = ["ld2450"]
CONF_MOVING_TARGET_COUNT = "moving_target_count"
CONF_STILL_TARGET_COUNT = "still_target_count"
CONF_TARGET_COUNT = "target_count"
ICON_ACCOUNT_GROUP = "mdi:account-group"
ICON_ACCOUNT_SWITCH = "mdi:account-switch"
+1 -2
View File
@@ -1,5 +1,6 @@
import esphome.codegen as cg
from esphome.components import sensor
from esphome.components.const import CONF_TARGET_COUNT
import esphome.config_validation as cv
from esphome.const import (
CONF_ANGLE,
@@ -19,8 +20,6 @@ from . import CONF_RD03D_ID, RD03DComponent
DEPENDENCIES = ["rd03d"]
CONF_TARGET_COUNT = "target_count"
MAX_TARGETS = 3
UNIT_MILLIMETER_PER_SECOND = "mm/s"