Suppress MQTT discovery updates without changes (#38568)
This commit is contained in:
parent
896bdbff8f
commit
4ed1f8023b
18 changed files with 266 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue