mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Add unique_id property
This commit is contained in:
@@ -92,6 +92,11 @@ class SystemMonitorSensor(Entity):
|
||||
self._state = None
|
||||
self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique identifier for the sensor."""
|
||||
return self.type
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
|
Reference in New Issue
Block a user