Rename mqtt entry setup helpers to reflect their purpose (#102378)
Rename mqtt entry setup helpers
This commit is contained in:
parent
e319b04fde
commit
25ab622b51
27 changed files with 73 additions and 55 deletions
|
@ -16,7 +16,11 @@ from homeassistant.helpers.typing import ConfigType
|
|||
|
||||
from .config import MQTT_BASE_SCHEMA
|
||||
from .const import CONF_COMMAND_TOPIC, CONF_ENCODING, CONF_QOS, CONF_RETAIN
|
||||
from .mixins import MQTT_ENTITY_COMMON_SCHEMA, MqttEntity, async_mqtt_entry_helper
|
||||
from .mixins import (
|
||||
MQTT_ENTITY_COMMON_SCHEMA,
|
||||
MqttEntity,
|
||||
async_setup_entity_entry_helper,
|
||||
)
|
||||
from .util import valid_publish_topic
|
||||
|
||||
DEFAULT_NAME = "MQTT Scene"
|
||||
|
@ -42,7 +46,7 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up MQTT scene through YAML and through MQTT discovery."""
|
||||
await async_mqtt_entry_helper(
|
||||
await async_setup_entity_entry_helper(
|
||||
hass,
|
||||
config_entry,
|
||||
MqttScene,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue