-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace overheated with the three new fields for plugs (#254)
--------- Co-authored-by: Dinculescu <[email protected]>
- Loading branch information
1 parent
8c7f5d9
commit c0d006e
Showing
12 changed files
with
79 additions
and
16 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
2 changes: 2 additions & 0 deletions
2
tapo-py/tapo-py/tapo/responses/device_info_result/__init__.pyi
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from .color_light_result import * | ||
from .default_state import * | ||
from .generic_result import * | ||
from .hub_result import * | ||
from .light_result import * | ||
from .plug_result import * | ||
from .power_status import * |
2 changes: 1 addition & 1 deletion
2
tapo-py/tapo-py/tapo/responses/device_info_result/color_light_result.pyi
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
File renamed without changes.
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
14 changes: 14 additions & 0 deletions
14
tapo-py/tapo-py/tapo/responses/device_info_result/power_status.pyi
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from enum import Enum | ||
|
||
class OvercurrentStatus(str, Enum): | ||
Lifted = "lifted" | ||
Normal = "normal" | ||
|
||
class OverheatStatus(str, Enum): | ||
CoolDown = "cool_down" | ||
Normal = "normal" | ||
Overheated = "overheated" | ||
|
||
class PowerProtectionStatus(str, Enum): | ||
Normal = "normal" | ||
Overloaded = "overloaded" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
#[serde(rename_all = "snake_case")] | ||
#[cfg_attr(feature = "python", pyo3::prelude::pyclass(get_all))] | ||
#[allow(missing_docs)] | ||
pub enum OvercurrentStatus { | ||
Lifted, | ||
Normal, | ||
} | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
#[serde(rename_all = "snake_case")] | ||
#[cfg_attr(feature = "python", pyo3::prelude::pyclass(get_all))] | ||
#[allow(missing_docs)] | ||
pub enum OverheatStatus { | ||
CoolDown, | ||
Normal, | ||
Overheated, | ||
} | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
#[serde(rename_all = "snake_case")] | ||
#[cfg_attr(feature = "python", pyo3::prelude::pyclass(get_all))] | ||
#[allow(missing_docs)] | ||
pub enum PowerProtectionStatus { | ||
Normal, | ||
Overloaded, | ||
} |