Calculate number of discovery topics correctly (#134393)

pull/134399/head
Jan Bouwhuis 2025-01-01 16:55:41 +01:00 committed by GitHub
parent a2ef1604af
commit 85c94e6403
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ DEFAULT_CONFIG_DEVICE_INFO_MAC = {
_SENTINEL = object()
DISCOVERY_COUNT = len(MQTT)
DISCOVERY_COUNT = sum(len(discovery_topic) for discovery_topic in MQTT.values())
DEVICE_DISCOVERY_COUNT = 2
type _MqttMessageType = list[tuple[str, str]]