Correct arguments to MQTT will_set (#38036)

This commit is contained in:
Erik Montnemery authored and Franck Nijhof committed 2020-07-22 15:36:16 +02:00
1 parent 0cd8dce9df
commit d8d48b0a21
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -716,7 +716,8 @@ class MQTT:
self._mqttc.will_set( # pylint: disable=no-value-for-parameter
*attr.astuple(
will_message,
filter=lambda attr, value: attr.name != "subscribed_topic",
filter=lambda attr, value: attr.name
not in ["subscribed_topic", "timestamp"],
)
)