From 4f11eec1a1bef997ab1ec1413bdbdd7577cf4c19 Mon Sep 17 00:00:00 2001 From: Federico Leoni Date: Tue, 12 Nov 2019 05:53:08 -0300 Subject: [PATCH] Update binary_sensor.py (#28707) * Update binary_sensor.py * Fix style issues --- homeassistant/components/mqtt/binary_sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/mqtt/binary_sensor.py b/homeassistant/components/mqtt/binary_sensor.py index bcf398464bc..fe47729561d 100644 --- a/homeassistant/components/mqtt/binary_sensor.py +++ b/homeassistant/components/mqtt/binary_sensor.py @@ -190,9 +190,11 @@ class MqttBinarySensor( self._state = False else: # Payload is not for this entity _LOGGER.warning( - "No matching payload found" " for entity: %s with state_topic: %s", + "No matching payload found for entity: %s with state topic: %s. Payload: %s, with value template %s", self._config[CONF_NAME], self._config[CONF_STATE_TOPIC], + payload, + value_template, ) return