Deconz use entity registry (#12067)

* Support for entity registry

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

No files matched your search

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