Fix MQTT template light (#42598)

This commit is contained in:
Erik Montnemery 2020-10-29 20:09:41 +01:00 committed by GitHub
parent bebbafdaba
commit 1215100f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,7 @@ class MqttLightTemplate(
except ValueError:
_LOGGER.warning("Invalid color value received")
if self._templates[CONF_COLOR_TEMP_TEMPLATE] is not None:
if self._templates[CONF_WHITE_VALUE_TEMPLATE] is not None:
try:
self._white_value = int(
self._templates[