Files
core/homeassistant/components/refoss/util.py
T
epenetGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 21:14:48 +02:00

15 lines
426 B
Python

"""Refoss helpers functions."""
from refoss_ha.discovery import Discovery
from homeassistant.core import HomeAssistant
from homeassistant.helpers import singleton
@singleton.singleton("refoss_discovery_server")
async def refoss_discovery_server(hass: HomeAssistant) -> Discovery:
"""Get refoss Discovery server."""
discovery_server = Discovery()
await discovery_server.initialize()
return discovery_server