Suppress MQTT discovery updates without changes (#38568)

This commit is contained in:
Erik Montnemery 2020-08-06 10:43:47 +02:00 committed by GitHub
parent 896bdbff8f
commit 4ed1f8023b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 266 additions and 31 deletions

View file

@ -169,7 +169,8 @@ class MqttBinarySensor(
if expire_after is not None and expire_after > 0:
# When expire_after is set, and we receive a message, assume device is not expired since it has to be to receive the message
# When expire_after is set, and we receive a message, assume device is
# not expired since it has to be to receive the message
self._expired = False
# Reset old trigger