Add description of what caused an automation trigger to fire (#39251)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Phil Bruckner 2020-08-28 10:02:12 -05:00 committed by GitHub
parent 5217139e0b
commit e6141ae558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 119 additions and 35 deletions

View file

@ -45,6 +45,7 @@ async def async_attach_trigger(hass, config, action, automation_info):
"topic": mqttmsg.topic,
"payload": mqttmsg.payload,
"qos": mqttmsg.qos,
"description": f"mqtt topic {mqttmsg.topic}",
}
try: