Update binary_sensor.py (#28707)
* Update binary_sensor.py * Fix style issues
This commit is contained in:
parent
87606bc12b
commit
4f11eec1a1
1 changed files with 3 additions and 1 deletions
|
@ -190,9 +190,11 @@ class MqttBinarySensor(
|
||||||
self._state = False
|
self._state = False
|
||||||
else: # Payload is not for this entity
|
else: # Payload is not for this entity
|
||||||
_LOGGER.warning(
|
_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_NAME],
|
||||||
self._config[CONF_STATE_TOPIC],
|
self._config[CONF_STATE_TOPIC],
|
||||||
|
payload,
|
||||||
|
value_template,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue