1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00
Files
core/homeassistant/components/wiim/const.py
T
Linkplay2020 fa57f72f37 Add WiiM media player integration (#148948)
Co-authored-by: Tao Jiang <tao.jiang@linkplay.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Joostlek <joostlek@outlook.com>
2026-03-19 18:33:53 +01:00

28 lines
629 B
Python

"""Constants for the WiiM integration."""
import logging
from typing import TYPE_CHECKING, Final
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.util.hass_dict import HassKey
if TYPE_CHECKING:
from wiim import WiimDevice
from .models import WiimData
type WiimConfigEntry = ConfigEntry[WiimDevice]
DOMAIN: Final = "wiim"
LOGGER = logging.getLogger(__package__)
DATA_WIIM: HassKey[WiimData] = HassKey(DOMAIN)
PLATFORMS: Final[list[Platform]] = [
Platform.MEDIA_PLAYER,
]
UPNP_PORT = 49152
ZEROCONF_TYPE_LINKPLAY: Final = "_linkplay._tcp.local."