mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Cleanup unused protocol class for mqtt entity setup (#126276)
This commit is contained in:
parent
21affac571
commit
bafc42c8f1
@ -143,20 +143,6 @@ MQTT_ATTRIBUTES_BLOCKED = {
|
||||
}
|
||||
|
||||
|
||||
class SetupEntity(Protocol):
|
||||
"""Protocol type for async_setup_entities."""
|
||||
|
||||
async def __call__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
config: ConfigType,
|
||||
config_entry: ConfigEntry,
|
||||
discovery_data: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Define setup_entities type."""
|
||||
|
||||
|
||||
@callback
|
||||
def async_handle_schema_error(
|
||||
discovery_payload: MQTTDiscoveryPayload, err: vol.Invalid
|
||||
|
Loading…
x
Reference in New Issue
Block a user