Add MQTT encoding parameter for all subscribed topics (#62263)

* Add encoding parameter for all subscribable topics

* test setup encoding incoming payload

* remove support for device_tracker and tag+tests
This commit is contained in:
Jan Bouwhuis 2022-01-03 16:08:07 +01:00 committed by GitHub
parent 3ca18922e6
commit dd0193052c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 737 additions and 5 deletions

View file

@ -412,6 +412,7 @@ class MqttClimate(MqttEntity, ClimateEntity):
"topic": self._topic[topic],
"msg_callback": msg_callback,
"qos": qos,
"encoding": self._config[CONF_ENCODING] or None,
}
def render_template(msg, template_name):