mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Calculate number of discovery topics correctly (#134393)
This commit is contained in:
parent
a2ef1604af
commit
85c94e6403
@ -68,7 +68,7 @@ DEFAULT_CONFIG_DEVICE_INFO_MAC = {
|
|||||||
|
|
||||||
_SENTINEL = object()
|
_SENTINEL = object()
|
||||||
|
|
||||||
DISCOVERY_COUNT = len(MQTT)
|
DISCOVERY_COUNT = sum(len(discovery_topic) for discovery_topic in MQTT.values())
|
||||||
DEVICE_DISCOVERY_COUNT = 2
|
DEVICE_DISCOVERY_COUNT = 2
|
||||||
|
|
||||||
type _MqttMessageType = list[tuple[str, str]]
|
type _MqttMessageType = list[tuple[str, str]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user