Add support for MQTT device triggers (#31679)
* Add support for MQTT device triggers * Fix test, tweaks * Improve test coverage * Address review comments, improve tests * Tidy up exception handling * Fix abbreviations * Rewrite to handle update of attached triggers * Update abbreviation test * Refactor according to review comments * Refactor according to review comments * Improve trigger removal * Further refactoring
This commit is contained in:
1 parent
f6540e3002
commit
60ae85564e
10 files changed
+1170
-34
No files matched your search
@@ -250,7 +250,7 @@ async def test_discovery_expansion(hass, mqtt_mock, caplog):
|
||||
|
||||
|
||||
ABBREVIATIONS_WHITE_LIST = [
|
||||
# MQTT client/server settings
|
||||
# MQTT client/server/trigger settings
|
||||
"CONF_BIRTH_MESSAGE",
|
||||
"CONF_BROKER",
|
||||
"CONF_CERTIFICATE",
|
||||
@@ -258,6 +258,7 @@ ABBREVIATIONS_WHITE_LIST = [
|
||||
"CONF_CLIENT_ID",
|
||||
"CONF_CLIENT_KEY",
|
||||
"CONF_DISCOVERY",
|
||||
"CONF_DISCOVERY_ID",
|
||||
"CONF_DISCOVERY_PREFIX",
|
||||
"CONF_EMBEDDED",
|
||||
"CONF_KEEPALIVE",
|
||||
|
||||
Reference in new issue
Block a user