mirror of
https://github.com/home-assistant/core.git
synced 2026-05-31 20:54:23 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
15 lines
426 B
Python
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
|