mirror of https://github.com/home-assistant/core
20 lines
393 B
Python
20 lines
393 B
Python
"""MQTT Discovery data."""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from homeassistant.data_entry_flow import BaseServiceInfo
|
|
|
|
type ReceivePayloadType = str | bytes
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class MqttServiceInfo(BaseServiceInfo):
|
|
"""Prepared info from mqtt entries."""
|
|
|
|
topic: str
|
|
payload: ReceivePayloadType
|
|
qos: int
|
|
retain: bool
|
|
subscribed_topic: str
|
|
timestamp: float
|