[const] Share CONF_HOST (#19716)

This commit is contained in:
J. Nick Koston
2026-09-26 07:12:05 -04:00
committed by GitHub
parent 7d5117e570
commit 1ea45be19e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@ CONF_ENABLE_OTA_DOWNGRADE_PROTECTION = "enable_ota_downgrade_protection"
CONF_ENABLED = "enabled" CONF_ENABLED = "enabled"
CONF_GYROSCOPE_ODR = "gyroscope_odr" CONF_GYROSCOPE_ODR = "gyroscope_odr"
CONF_GYROSCOPE_RANGE = "gyroscope_range" CONF_GYROSCOPE_RANGE = "gyroscope_range"
CONF_HOST = "host"
CONF_HUMIDITY_SOURCE = "humidity_source" CONF_HUMIDITY_SOURCE = "humidity_source"
CONF_IAQ = "iaq" CONF_IAQ = "iaq"
CONF_IGNORE_NOT_FOUND = "ignore_not_found" CONF_IGNORE_NOT_FOUND = "ignore_not_found"
+1 -1
View File
@@ -1,5 +1,6 @@
import esphome.codegen as cg import esphome.codegen as cg
from esphome.components import binary_sensor, sensor from esphome.components import binary_sensor, sensor
from esphome.components.const import CONF_HOST
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import ( from esphome.const import (
CONF_BINARY_SENSORS, CONF_BINARY_SENSORS,
@@ -14,7 +15,6 @@ AUTO_LOAD = ["socket"]
CODEOWNERS = ["@Links2004"] CODEOWNERS = ["@Links2004"]
DEPENDENCIES = ["network"] DEPENDENCIES = ["network"]
CONF_HOST = "host"
CONF_PREFIX = "prefix" CONF_PREFIX = "prefix"
statsd_component_ns = cg.esphome_ns.namespace("statsd") statsd_component_ns = cg.esphome_ns.namespace("statsd")