1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-09 16:39:22 +00:00
2024-12-11 11:51:16 +01:00

20 lines
405 B
Python

"""MQTT Discovery data."""
from dataclasses import dataclass
from homeassistant.data_entry_flow import BaseServiceInfo
type ReceivePayloadType = str | bytes | bytearray
@dataclass(slots=True)
class MqttServiceInfo(BaseServiceInfo):
"""Prepared info from mqtt entries."""
topic: str
payload: ReceivePayloadType
qos: int
retain: bool
subscribed_topic: str
timestamp: float