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

@ -305,7 +305,7 @@ async def _async_discover(
raise
async def async_setup_entry_helper(
async def async_setup_non_entity_entry_helper(
hass: HomeAssistant,
domain: str,
async_setup: partial[Coroutine[Any, Any, None]],
@ -332,7 +332,7 @@ async def async_setup_entry_helper(
)
async def async_mqtt_entry_helper(
async def async_setup_entity_entry_helper(
hass: HomeAssistant,
entry: ConfigEntry,
entity_class: type[MqttEntity] | None,
@ -342,7 +342,7 @@ async def async_mqtt_entry_helper(
platform_schema_modern: vol.Schema,
schema_class_mapping: dict[str, type[MqttEntity]] | None = None,
) -> None:
"""Set up entity, automation or tag creation dynamically through MQTT discovery."""
"""Set up entity creation dynamically through MQTT discovery."""
mqtt_data = get_mqtt_data(hass)
async def async_setup_from_discovery(