mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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._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
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user