mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 07:31:51 +00:00
preen
This commit is contained in:
@@ -13,6 +13,7 @@ from esphome.const import (
|
|||||||
)
|
)
|
||||||
from esphome.core import CORE, Lambda, coroutine_with_priority
|
from esphome.core import CORE, Lambda, coroutine_with_priority
|
||||||
from esphome.coroutine import CoroPriority
|
from esphome.coroutine import CoroPriority
|
||||||
|
from esphome.types import ConfigType
|
||||||
|
|
||||||
CODEOWNERS = ["@esphome/core"]
|
CODEOWNERS = ["@esphome/core"]
|
||||||
DEPENDENCIES = ["network"]
|
DEPENDENCIES = ["network"]
|
||||||
@@ -47,7 +48,7 @@ SERVICE_SCHEMA = cv.Schema(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def _consume_mdns_sockets(config):
|
def _consume_mdns_sockets(config: ConfigType) -> ConfigType:
|
||||||
"""Register socket needs for mDNS component."""
|
"""Register socket needs for mDNS component."""
|
||||||
if config.get(CONF_DISABLED):
|
if config.get(CONF_DISABLED):
|
||||||
return config
|
return config
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ from esphome.const import (
|
|||||||
PlatformFramework,
|
PlatformFramework,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE, CoroPriority, coroutine_with_priority
|
from esphome.core import CORE, CoroPriority, coroutine_with_priority
|
||||||
|
from esphome.types import ConfigType
|
||||||
|
|
||||||
DEPENDENCIES = ["network"]
|
DEPENDENCIES = ["network"]
|
||||||
|
|
||||||
@@ -210,7 +211,7 @@ def validate_fingerprint(value):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
def _consume_mqtt_sockets(config):
|
def _consume_mqtt_sockets(config: ConfigType) -> ConfigType:
|
||||||
"""Register socket needs for MQTT component."""
|
"""Register socket needs for MQTT component."""
|
||||||
from esphome.components import socket
|
from esphome.components import socket
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user