From 676af205e40a4f1552c08c095d770412a810aaf6 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Sat, 10 Apr 2021 17:22:15 +0200 Subject: [PATCH] Fix light template invalid color temp message (#48337) --- homeassistant/components/template/light.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/template/light.py b/homeassistant/components/template/light.py index e76ba42289b..2479388eaaf 100644 --- a/homeassistant/components/template/light.py +++ b/homeassistant/components/template/light.py @@ -435,8 +435,9 @@ class LightTemplate(TemplateEntity, LightEntity): self._temperature = temperature else: _LOGGER.error( - "Received invalid color temperature : %s. Expected: 0-%s", + "Received invalid color temperature : %s. Expected: %s-%s", temperature, + self.min_mireds, self.max_mireds, ) self._temperature = None