Skip to content

Commit

Permalink
Add unique ID and device info to Nest camera (#16846)
Browse files Browse the repository at this point in the history
* Add unique ID and device info to Nest camera

* Remove sw version
  • Loading branch information
balloob committed Sep 25, 2018
1 parent b9043ef commit 345c886
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions homeassistant/components/camera/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,23 @@ def name(self):
"""Return the name of the nest, if any."""
return self._name

@property
def unique_id(self):
"""Return the serial number."""
return self.device.device_id

@property
def device_info(self):
"""Return information about the device."""
return {
'identifiers': {
(nest.DOMAIN, self.device.device_id)
},
'name': self.device.name_long,
'manufacturer': 'Nest Labs',
'model': "Camera",
}

@property
def should_poll(self):
"""Nest camera should poll periodically."""
Expand Down

0 comments on commit 345c886

Please sign in to comment.