1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-31 20:54:23 +01:00
Files
core/homeassistant/components/refoss/util.py
T
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