Deconz use entity registry (#12067)
* Support for entity registry * Not everything is a sensor...
This commit is contained in:
parent
990fbdf3ca
commit
37034a7450
5 changed files with 23 additions and 3 deletions
|
@ -65,6 +65,11 @@ class DeconzBinarySensor(BinarySensorDevice):
|
|||
"""Return the name of the sensor."""
|
||||
return self._sensor.name
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique identifier for this sensor."""
|
||||
return self._sensor.uniqueid
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of the sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue