mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix MQTT template light (#42598)
This commit is contained in:
parent
bebbafdaba
commit
1215100f9a
@ -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[
|
||||
|
Loading…
x
Reference in New Issue
Block a user