Adds missing name property to KNX weather device (#39547)

This commit is contained in:
Marvin Wichmann authored and GitHub committed 2020-09-01 13:01:47 +02:00
1 parent 762d7357b5
commit 69b3da48b1
1 file changed
+5
+5
View File
@@ -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."""