mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 13:34:12 +00:00
[entity_transport] Use the shared provider and remote id constants
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a19cf9bb93
commit
87cc64320a
@@ -6,6 +6,7 @@ from typing import Any
|
||||
import esphome.codegen as cg
|
||||
from esphome.components import packet_interface
|
||||
from esphome.components.binary_sensor import BinarySensor
|
||||
from esphome.components.const import CONF_PROVIDER, CONF_REMOTE_ID
|
||||
from esphome.components.packet_interface import CONF_PACKET_INTERFACE
|
||||
from esphome.components.sensor import Sensor
|
||||
import esphome.config_validation as cv
|
||||
@@ -26,8 +27,6 @@ MULTI_CONF = True
|
||||
|
||||
CONF_BROADCAST_ID = "broadcast_id"
|
||||
CONF_ENTITY_TRANSPORT_ID = "entity_transport_id"
|
||||
CONF_PROVIDER = "provider"
|
||||
CONF_REMOTE_ID = "remote_id"
|
||||
|
||||
entity_transport_ns = cg.esphome_ns.namespace("entity_transport")
|
||||
EntityTransport = entity_transport_ns.class_("EntityTransport", cg.Component)
|
||||
|
||||
@@ -3,12 +3,8 @@
|
||||
import pytest
|
||||
|
||||
from esphome import config_validation as cv
|
||||
from esphome.components.entity_transport import (
|
||||
CONF_PROVIDER,
|
||||
CONF_REMOTE_ID,
|
||||
CONFIG_SCHEMA,
|
||||
remote_entity_schema,
|
||||
)
|
||||
from esphome.components.const import CONF_PROVIDER, CONF_REMOTE_ID
|
||||
from esphome.components.entity_transport import CONFIG_SCHEMA, remote_entity_schema
|
||||
from esphome.components.sensor import sensor_schema
|
||||
from esphome.const import (
|
||||
CONF_ID,
|
||||
|
||||
Reference in New Issue
Block a user