Home Assistant Unofficial Reference 2024.12.1
mqtt.py
Go to the documentation of this file.
1 """MQTT Discovery data."""
2 
3 from dataclasses import dataclass
4 
5 from homeassistant.data_entry_flow import BaseServiceInfo
6 
7 type ReceivePayloadType = str | bytes
8 
9 
10 @dataclass(slots=True)
12  """Prepared info from mqtt entries."""
13 
14  topic: str
15  payload: ReceivePayloadType
16  qos: int
17  retain: bool
18  subscribed_topic: str
19  timestamp: float