Skip to content

Commit

Permalink
add last sleep score unit
Browse files Browse the repository at this point in the history
* Last sleep's score should be "score" measurement

* Update CHANGELOG.md

* Update manifest.json

---------

Co-authored-by: Matthieu <[email protected]>
  • Loading branch information
thoemmi and Aohzan authored Mar 23, 2023
1 parent e984a6a commit a86bf37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.0

- add `score` unit of measurement for sleep score

## 1.1.0

- fix url callback building
Expand Down
4 changes: 2 additions & 2 deletions custom_components/polar/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"requirements": [
"isodate==0.6.1"
],
"version": "1.1.0"
}
"version": "1.2.0"
}
1 change: 1 addition & 0 deletions custom_components/polar/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class PolarEntityDescription(SensorEntityDescription):
key="sleep_score",
name="Last sleep score",
unique_id="last_sleep",
native_unit_of_measurement="score",
attributes_keys=[
"date",
"sleep_start_time",
Expand Down

0 comments on commit a86bf37

Please sign in to comment.