1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Cleanup of unused connection_class logic (#49865)

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
Franck Nijhof
2021-04-29 23:12:58 +02:00
committed by GitHub
parent db886ef03a
commit c68b259bd3
53 changed files with 50 additions and 162 deletions

View File

@@ -1,7 +1,6 @@
"""Config flow for NEW_NAME."""
import my_pypi_dependency
from homeassistant import config_entries
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_entry_flow
@@ -15,6 +14,4 @@ async def _async_has_devices(hass: HomeAssistant) -> bool:
return len(devices) > 0
config_entry_flow.register_discovery_flow(
DOMAIN, "NEW_NAME", _async_has_devices, config_entries.CONN_CLASS_UNKNOWN
)
config_entry_flow.register_discovery_flow(DOMAIN, "NEW_NAME", _async_has_devices)