Skip to content

Commit

Permalink
Merge pull request #4 from GraemeDBlue/headers-add
Browse files Browse the repository at this point in the history
Add headers to attempt to circumvent possible rate limiting
  • Loading branch information
GraemeDBlue authored Jan 13, 2025
2 parents 9be66b1 + ea40f35 commit b538482
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/wavespa/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/GraemeDBlue/ha-wavespa/issues",
"requirements": [],
"version": "1.2.2"
"version": "1.2.3"
}
6 changes: 3 additions & 3 deletions custom_components/wavespa/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ def native_value(self) -> float | None:
return hours
return None

async def async_set_native_value(self, value: float) -> None:
"""Update the current value."""
await self.coordinator.api.pool_filter_set_time(self.device_id, int(value))
# async def async_set_native_value(self, value: float) -> None:
# """Update the current value."""
# await self.coordinator.api.pool_filter_set_time(self.device_id, int(value))
2 changes: 2 additions & 0 deletions custom_components/wavespa/wavespa/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
_HEADERS = {
"Content-type": "application/json; charset=UTF-8",
"X-Gizwits-Application-Id": "78a879318939402b9c70819d918ef8ed",
"User-Agent": "okhttp/5.0.0-alpha.3",
"Connection": "Keep-Alive"
}
_TIMEOUT = 10

Expand Down

0 comments on commit b538482

Please sign in to comment.