Disable extra=vol.ALLOW_EXTRA for MQTT platforms. (#20562)
This commit is contained in:
1 parent
48f0e8311b
commit
89fc3b2a1b
22 files changed
+67
-56
No files matched your search
@@ -216,8 +216,8 @@ async def async_start(hass: HomeAssistantType, discovery_topic, hass_config,
|
||||
key = ABBREVIATIONS.get(key, key)
|
||||
payload[key] = payload.pop(abbreviated_key)
|
||||
|
||||
if TOPIC_BASE in payload:
|
||||
base = payload[TOPIC_BASE]
|
||||
base = payload.pop(TOPIC_BASE, None)
|
||||
if base:
|
||||
for key, value in payload.items():
|
||||
if isinstance(value, str) and value:
|
||||
if value[0] == TOPIC_BASE and key.endswith('_topic'):
|
||||
|
||||
Reference in new issue
Block a user