Deconz use entity registry (#12067)

* Support for entity registry

* Not everything is a sensor...
This commit is contained in:
Kane610 2018-01-30 23:42:24 +01:00 committed by Paulus Schoutsen
parent 990fbdf3ca
commit 37034a7450
5 changed files with 23 additions and 3 deletions

View file

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