From 15da1c478517f0d9eeae31b12544c836a1a2e275 Mon Sep 17 00:00:00 2001 From: hung2kgithub <73251414+hung2kgithub@users.noreply.github.com> Date: Thu, 11 Mar 2021 04:48:06 +0800 Subject: [PATCH] Add missing clear-night weather condition (#47666) --- homeassistant/components/template/weather.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/template/weather.py b/homeassistant/components/template/weather.py index 560bd5639ba..0db94520afe 100644 --- a/homeassistant/components/template/weather.py +++ b/homeassistant/components/template/weather.py @@ -2,6 +2,7 @@ import voluptuous as vol from homeassistant.components.weather import ( + ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, @@ -29,6 +30,7 @@ from .const import DOMAIN, PLATFORMS from .template_entity import TemplateEntity CONDITION_CLASSES = { + ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL,