Skip to content

Commit

Permalink
bug fix and add const
Browse files Browse the repository at this point in the history
  • Loading branch information
zsy056 committed Jun 11, 2023
1 parent 0069e4e commit dfe7c4e
Show file tree
Hide file tree
Showing 3 changed files with 3 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.9"
version = "0.0.10"
authors = [
{ name="Shaoyu Zhang", email="zsy056@gmail.com" },
]
Expand Down
1 change: 1 addition & 0 deletions src/dueros_smarthome/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
STATUS = "status"

STATUS_OK = 0
STATUS_NOT_LOGIN = 2

TURN_OFF_REQUEST = "TurnOffRequest"
TURN_ON_REQUEST = "TurnOnRequest"
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 @@ -27,7 +27,7 @@ def timestamp_of_sample(self):

class ConnectivitySetting:
def __init__(self, connectivity_setting: dict):
self._value = connectivity_setting[const.VALUE]
self._value = Connectivity.from_str(connectivity_setting[const.VALUE])
self._time = connectivity_setting[const.TIME]

@property
Expand Down

0 comments on commit dfe7c4e

Please sign in to comment.