Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zsy056 committed Jun 11, 2023
1 parent 9c1665e commit c9f09c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "dueros_smarthome"
version = "0.0.11"
version = "0.0.12"
authors = [
{ name="Shaoyu Zhang", email="zsy056@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/dueros_smarthome/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, value: int, kelvin_min: int = '2700', kelvin_max: int = '6500

@property
def in_kelvin(self) -> int:
return self._kelvinMin + (self._kelvinMax - self._kelvinMin) * (self._value - self._min + 1) / (self._max - self._min + 1)
return self._kelvin_min + (self._kelvin_max - self._kelvin_min) * (self._value - self._min + 1) / (self._max - self._min + 1)

@property
def percentage(self) -> int:
Expand Down

0 comments on commit c9f09c4

Please sign in to comment.