prana-api-client 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prana-api-client
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Async API client for Prana heat recovery ventilator.
5
5
  Author-email: Prana Developer <devprana18@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prana-api-client
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Async API client for Prana heat recovery ventilator.
5
5
  Author-email: Prana Developer <devprana18@gmail.com>
6
6
  License: MIT
@@ -50,6 +50,12 @@ class PranaLocalApiClient:
50
50
  data = {"brightness": brightness}
51
51
  await self._async_request("POST", url, json_data=data)
52
52
 
53
+ async def set_speed_is_on(self, speed_is_on: bool, fan_type: str) -> None:
54
+ """Sends the speed is on/off change command."""
55
+ url = f"{self.base_url}/setSpeedIsOn"
56
+ data = {"value": speed_is_on, "fanType": fan_type}
57
+ await self._async_request("POST", url, json_data=data)
58
+
53
59
  # --- General method for executing requests ---
54
60
 
55
61
  async def _async_request(
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "prana-api-client"
7
- version = "0.2.0"
7
+ version = "0.4.0"
8
8
  authors = [
9
9
  { name="Prana Developer", email="devprana18@gmail.com" },
10
10
  ]