Skip to content

Commit

Permalink
Add platforms parameter to IntexSpa class
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-mp committed Jun 18, 2022
1 parent f452c3b commit 770b140
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ This python package follows Semantic Versioning 2.0.0

***Reminder**: Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.*

### 0.3.0 - 2022-06-18

Add platforms parameter to IntexSpa class

### 0.2.1 - 2022-06-11

Make compatible with Python 3.9
Expand Down
17 changes: 17 additions & 0 deletions intex_spa/intex_spa.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ def __init__(self, address: str = "SPA_DEVICE", port: str = "8990"):
_LOGGER.warning("Initializing IntexSpa instance")
self.network = IntexSpaNetworkLayer(address, port)
self.status = IntexSpaStatus()
self.platforms = {
"switches": [
"power",
"filter",
"jets",
"bubbles",
"sanitizer",
],
"climates": [
{
"unit": "unit",
"current_temp": "current_temp",
"preset_temp": "preset_temp",
"heater": "heater",
},
],
}
self.last_successful_update_ms: int = None
self.is_available: bool = None

Expand Down

0 comments on commit 770b140

Please sign in to comment.