Deconz use entity registry (#12067)
* Support for entity registry * Not everything is a sensor...
This commit is contained in:
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."""
|
||||
|
||||
Reference in new issue
Block a user