mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add unit of measurement and icon for sleep score (#45705)
This commit is contained in:
parent
97fd05eb9f
commit
fbffea6b61
@ -402,8 +402,8 @@ WITHINGS_ATTRIBUTES = [
|
|||||||
Measurement.SLEEP_SCORE,
|
Measurement.SLEEP_SCORE,
|
||||||
GetSleepSummaryField.SLEEP_SCORE,
|
GetSleepSummaryField.SLEEP_SCORE,
|
||||||
"Sleep score",
|
"Sleep score",
|
||||||
"",
|
const.SCORE_POINTS,
|
||||||
None,
|
"mdi:medal",
|
||||||
SENSOR_DOMAIN,
|
SENSOR_DOMAIN,
|
||||||
False,
|
False,
|
||||||
UpdateType.POLL,
|
UpdateType.POLL,
|
||||||
|
@ -55,6 +55,7 @@ class Measurement(Enum):
|
|||||||
WEIGHT_KG = "weight_kg"
|
WEIGHT_KG = "weight_kg"
|
||||||
|
|
||||||
|
|
||||||
|
SCORE_POINTS = "points"
|
||||||
UOM_BEATS_PER_MINUTE = "bpm"
|
UOM_BEATS_PER_MINUTE = "bpm"
|
||||||
UOM_BREATHS_PER_MINUTE = f"br/{const.TIME_MINUTES}"
|
UOM_BREATHS_PER_MINUTE = f"br/{const.TIME_MINUTES}"
|
||||||
UOM_FREQUENCY = "times"
|
UOM_FREQUENCY = "times"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user