-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove overheated from DeviceInfoGenericResult
Addresses #216.
- Loading branch information
1 parent
c423a92
commit 4ad1107
Showing
13 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ class DeviceInfoHubResult: | |
rssi: int | ||
specs: str | ||
lang: str | ||
overheated: bool | ||
nickname: str | ||
avatar: str | ||
has_set_location_info: bool | ||
|
@@ -28,8 +27,9 @@ class DeviceInfoHubResult: | |
time_diff: Optional[int] | ||
|
||
# Unique to this device | ||
in_alarm: bool | ||
in_alarm_source: str | ||
in_alarm: bool | ||
overheated: bool | ||
This comment has been minimized.
Sorry, something went wrong.
sledgemhammer
|
||
|
||
def to_dict(self) -> dict: | ||
"""Gets all the properties of this result as a dictionary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ class DeviceInfoLightResult: | |
device_on: bool | ||
on_time: int | ||
"""The time in seconds this device has been ON since the last state change (ON/OFF).""" | ||
overheated: bool | ||
nickname: str | ||
avatar: str | ||
has_set_location_info: bool | ||
|
@@ -36,6 +35,7 @@ class DeviceInfoLightResult: | |
brightness: int | ||
default_states: DefaultLightState | ||
"""The default state of a device to be used when internet connectivity is lost after a power cut.""" | ||
overheated: bool | ||
This comment has been minimized.
Sorry, something went wrong.
sledgemhammer
|
||
|
||
def to_dict(self) -> dict: | ||
"""Gets all the properties of this result as a dictionary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ class DeviceInfoPlugResult: | |
device_on: bool | ||
on_time: int | ||
"""The time in seconds this device has been ON since the last state change (ON/OFF).""" | ||
overheated: bool | ||
nickname: str | ||
avatar: str | ||
has_set_location_info: bool | ||
|
@@ -35,6 +34,7 @@ class DeviceInfoPlugResult: | |
# Unique to this device | ||
default_states: DefaultPlugState | ||
"""The default state of a device to be used when internet connectivity is lost after a power cut.""" | ||
overheated: bool | ||
This comment has been minimized.
Sorry, something went wrong.
sledgemhammer
|
||
|
||
def to_dict(self) -> dict: | ||
"""Gets all the properties of this result as a dictionary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
please remove or adjust as the api changed in json response : "overheated" had become 'overheat_status'