mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Deconz use entity registry (#12067)
* Support for entity registry * Not everything is a sensor...
This commit is contained in:
committed by
Paulus Schoutsen
parent
990fbdf3ca
commit
37034a7450
@@ -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