Added Ambient PWS to device registry (#20841)

This commit is contained in:
Aaron Bach 2019-02-07 20:12:58 -07:00 committed by Andrew Sayre
parent 49bab574b9
commit 222c4ea6f3

View File

@ -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."""