Rename mqtt entry setup helpers to reflect their purpose (#102378)

Rename mqtt entry setup helpers
This commit is contained in:
Jan Bouwhuis 2023-10-20 13:36:24 +02:00 committed by GitHub
parent e319b04fde
commit 25ab622b51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 73 additions and 55 deletions

View file

@ -26,7 +26,11 @@ from . import subscription
from .config import MQTT_BASE_SCHEMA
from .const import CONF_ENCODING, CONF_QOS
from .debug_info import log_messages
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 .models import MessageCallbackType, MqttValueTemplate, ReceiveMessage
from .util import get_mqtt_data, valid_subscribe_topic
@ -78,7 +82,7 @@ async def async_setup_entry(
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up MQTT image through YAML and through MQTT discovery."""
await async_mqtt_entry_helper(
await async_setup_entity_entry_helper(
hass,
config_entry,
MqttImage,