mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Adds missing name property to KNX weather device (#39547)
This commit is contained in:
parent
762d7357b5
commit
69b3da48b1
@ -23,6 +23,11 @@ class KNXWeather(WeatherEntity):
|
|||||||
"""Initialize of a KNX sensor."""
|
"""Initialize of a KNX sensor."""
|
||||||
self.device = device
|
self.device = device
|
||||||
|
|
||||||
|
@property
|
||||||
|
def name(self):
|
||||||
|
"""Return the name of the weather device."""
|
||||||
|
return self.device.name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def temperature(self):
|
def temperature(self):
|
||||||
"""Return current temperature."""
|
"""Return current temperature."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user