mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Added Ambient PWS to device registry (#20841)
This commit is contained in:
parent
49bab574b9
commit
222c4ea6f3
@ -254,6 +254,17 @@ class AmbientWeatherEntity(Entity):
|
|||||||
self._state = None
|
self._state = None
|
||||||
self._station_name = station_name
|
self._station_name = station_name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_info(self):
|
||||||
|
"""Return device registry information for this entity."""
|
||||||
|
return {
|
||||||
|
'identifiers': {
|
||||||
|
(DOMAIN, self._mac_address)
|
||||||
|
},
|
||||||
|
'name': self._station_name,
|
||||||
|
'manufacturer': 'Ambient Weather',
|
||||||
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the sensor."""
|
"""Return the name of the sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user