We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a1e34d + 9781cd8 commit cddd075Copy full SHA for cddd075
custom_components/libreview/sensor.py
@@ -29,6 +29,7 @@ async def async_setup_entry(
29
30
class GlucoseSensor(CoordinatorEntity, SensorEntity):
31
_attr_native_unit_of_measurement: str
32
+ _attr_state_class = "measurement"
33
uom: GlucoseUnitOfMeasurement
34
35
def __init__(
@@ -43,6 +44,11 @@ def __init__(
43
44
self.uom = uom
45
self._attr_native_unit_of_measurement = self.uom.value
46
47
+ @property
48
+ def icon(self):
49
+ # trend icons?
50
+ return "mdi:diabetes"
51
+
52
@property
53
def connection(self) -> Connection:
54
return self.coordinator.data["glucose_readings"][self.connection_id]
0 commit comments