mirror of
https://github.com/esphome/esphome.git
synced 2026-05-21 02:01:57 +08:00
[gcja5][cd74hc4067][openthread_info] Fix PollingComponent mismatches (#15476)
This commit is contained in:
@@ -9,9 +9,7 @@ MULTI_CONF = True
|
||||
|
||||
cd74hc4067_ns = cg.esphome_ns.namespace("cd74hc4067")
|
||||
|
||||
CD74HC4067Component = cd74hc4067_ns.class_(
|
||||
"CD74HC4067Component", cg.Component, cg.PollingComponent
|
||||
)
|
||||
CD74HC4067Component = cd74hc4067_ns.class_("CD74HC4067Component", cg.Component)
|
||||
|
||||
CONF_PIN_S0 = "pin_s0"
|
||||
CONF_PIN_S1 = "pin_s1"
|
||||
|
||||
@@ -24,7 +24,7 @@ DEPENDENCIES = ["uart"]
|
||||
|
||||
gcja5_ns = cg.esphome_ns.namespace("gcja5")
|
||||
|
||||
GCJA5Component = gcja5_ns.class_("GCJA5Component", cg.PollingComponent, uart.UARTDevice)
|
||||
GCJA5Component = gcja5_ns.class_("GCJA5Component", cg.Component, uart.UARTDevice)
|
||||
|
||||
CONF_PMC_0_3 = "pmc_0_3"
|
||||
CONF_PMC_5_0 = "pmc_5_0"
|
||||
|
||||
@@ -54,7 +54,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||
{
|
||||
cv.Optional(CONF_IP_ADDRESS): text_sensor.text_sensor_schema(
|
||||
IPAddressOpenThreadInfo, entity_category=ENTITY_CATEGORY_DIAGNOSTIC
|
||||
),
|
||||
).extend(cv.polling_component_schema("1s")),
|
||||
cv.Optional(CONF_ROLE): text_sensor.text_sensor_schema(
|
||||
RoleOpenThreadInfo, entity_category=ENTITY_CATEGORY_DIAGNOSTIC
|
||||
).extend(cv.polling_component_schema("1s")),
|
||||
|
||||
Reference in New Issue
Block a user