Skip to content

Commit

Permalink
v3.1.1
Browse files Browse the repository at this point in the history
- update state body type for translation
- update state bmi label for translation
  • Loading branch information
dckiller51 committed Oct 11, 2023
1 parent 6755b2a commit d83599d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

<!--next-version-placeholder-->

## v3.1.1

- update state body type for translation
- update state bmi label for translation

## v3.1.0

- update of the translation DE,EN,ES,FR,IT,PL,PT-BR,RO,RU
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bodymiscale/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
MIN_REQUIRED_HA_VERSION = "2022.4.0b0"
NAME = "BodyMiScale"
DOMAIN = "bodymiscale"
VERSION = "3.1.0"
VERSION = "3.1.1"

ISSUE_URL = "https://github.com/dckiller51/bodymiscale/issues"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/bodymiscale/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"requirements": [
"cachetools==5.3.0"
],
"version": "3.1.0"
"version": "3.1.1"
}
18 changes: 9 additions & 9 deletions custom_components/bodymiscale/metrics/impedance.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ def get_body_type(
body_type = factor * 3

return [
"Obese",
"Overweight",
"Thick-set",
"Lack-exercise",
"Balanced",
"Balanced-muscular",
"Skinny",
"Balanced-skinny",
"Skinny-muscular",
"obese",
"overweight",
"thick_set",
"lack_exercise",
"balanced",
"balanced_muscular",
"skinny",
"balanced_skinny",
"skinny_muscular",
][body_type]
2 changes: 1 addition & 1 deletion custom_components/bodymiscale/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_bmi_label(bmi: float) -> str: # pylint: disable=too-many-return-stateme
if bmi < 25:
return "normal_or_healthy_weight"
if bmi < 27:
return "slight overweight"
return "slight_overweight"
if bmi < 30:
return "overweight"
if bmi < 35:
Expand Down

0 comments on commit d83599d

Please sign in to comment.