From 69b3da48b1da5e61ba7fae78d56a7536a051f995 Mon Sep 17 00:00:00 2001 From: Marvin Wichmann Date: Tue, 1 Sep 2020 13:01:47 +0200 Subject: [PATCH] Adds missing name property to KNX weather device (#39547) --- homeassistant/components/knx/weather.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/knx/weather.py b/homeassistant/components/knx/weather.py index aed376ec066..97500ef8194 100644 --- a/homeassistant/components/knx/weather.py +++ b/homeassistant/components/knx/weather.py @@ -23,6 +23,11 @@ class KNXWeather(WeatherEntity): """Initialize of a KNX sensor.""" self.device = device + @property + def name(self): + """Return the name of the weather device.""" + return self.device.name + @property def temperature(self): """Return current temperature."""