my-PV 0.0.1.dev4__tar.gz → 0.0.1.dev6__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.
Files changed (27) hide show
  1. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/PKG-INFO +1 -1
  2. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/__init__.py +17 -6
  3. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/_version.py +2 -2
  4. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/.github/dependabot.yml +0 -0
  5. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/.github/workflows/check-format.yml +0 -0
  6. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/.github/workflows/pypi-publish.yml +0 -0
  7. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/.gitignore +0 -0
  8. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/LICENSE +0 -0
  9. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/README.md +0 -0
  10. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/000000.json +0 -0
  11. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/140100.json +0 -0
  12. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/160150.json +0 -0
  13. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/160151.json +0 -0
  14. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/160152.json +0 -0
  15. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200100.json +0 -0
  16. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200103.json +0 -0
  17. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200110.json +0 -0
  18. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200113.json +0 -0
  19. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200300.json +0 -0
  20. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/200310.json +0 -0
  21. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/210300.json +0 -0
  22. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/210900.json +0 -0
  23. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/configs/__init__.py +0 -0
  24. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/connection.py +0 -0
  25. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/exceptions.py +0 -0
  26. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/my_pv/py.typed +0 -0
  27. {my_pv-0.0.1.dev4 → my_pv-0.0.1.dev6}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: my-PV
3
- Version: 0.0.1.dev4
3
+ Version: 0.0.1.dev6
4
4
  Summary: Library to interface with my-PV devices.
5
5
  Project-URL: Homepage, https://my-pv.com/
6
6
  Project-URL: Repository, https://github.com/my-PV/py-mypv
@@ -258,7 +258,7 @@ class MyPVDevice(ABC):
258
258
 
259
259
  return False
260
260
 
261
- def get_setup_configurations(self) -> dict:
261
+ def get_setup_configurations(self) -> dict[str, [str, Any]]:
262
262
  """Gets the configuration of the available setup parameters."""
263
263
  setup_keys = self._setup_values.keys()
264
264
  return {
@@ -275,7 +275,7 @@ class MyPVDevice(ABC):
275
275
  and val.get("advanced", False) in [False, self.advanced]
276
276
  }
277
277
 
278
- def get_setup_configuration(self, key: str) -> dict | None:
278
+ def get_setup_configuration(self, key: str) -> dict[str, Any] | None:
279
279
  return self.get_setup_configurations().get(key)
280
280
 
281
281
  def get_setup_value(self, key: str) -> bool | float | int | str | None:
@@ -337,7 +337,7 @@ class MyPVDevice(ABC):
337
337
 
338
338
  return False
339
339
 
340
- def get_data_configurations(self) -> dict:
340
+ def get_data_configurations(self) -> dict[str, [str, Any]]:
341
341
  """Gets the configuration of the available device data."""
342
342
  data_keys = self._data_values.keys()
343
343
  data_configurations = {
@@ -360,7 +360,7 @@ class MyPVDevice(ABC):
360
360
 
361
361
  return data_configurations
362
362
 
363
- def get_data_configuration(self, key: str) -> dict | None:
363
+ def get_data_configuration(self, key: str) -> dict[str, Any] | None:
364
364
  return self.get_data_configurations().get(key)
365
365
 
366
366
  def get_data_value(self, key: str) -> bool | float | int | str | None:
@@ -440,7 +440,7 @@ class MyPVDevice(ABC):
440
440
  "commands"
441
441
  ][command].get("advanced", False) in [False, self.advanced]
442
442
 
443
- def get_command_configurations(self) -> dict:
443
+ def get_command_configurations(self) -> dict[str, [str, Any]]:
444
444
  """Gets the configuration of the available commands supported by the device."""
445
445
  return {
446
446
  key: val
@@ -448,7 +448,7 @@ class MyPVDevice(ABC):
448
448
  if val.get("advanced", False) in [False, self.advanced]
449
449
  }
450
450
 
451
- def get_command_configuration(self, command: str) -> dict | None:
451
+ def get_command_configuration(self, command: str) -> dict[str, Any] | None:
452
452
  return self.get_command_configurations().get(command)
453
453
 
454
454
  async def send_command(
@@ -481,6 +481,17 @@ class MyPVDevice(ABC):
481
481
 
482
482
  return await self._connection.send_command(command, value)
483
483
 
484
+ @property
485
+ def current_temperature(self) -> float:
486
+ return self.get_data_value("temp1")
487
+
488
+ @property
489
+ def target_temperature(self) -> float:
490
+ return self.get_data_value("ww1target")
491
+
492
+ async def set_target_temperature(self, temperature: float) -> bool:
493
+ return await self.set_setup_value("ww1target", temperature)
494
+
484
495
  @property
485
496
  def is_on(self) -> bool:
486
497
  return self.get_setup_value("devmode")
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.0.1.dev4'
22
- __version_tuple__ = version_tuple = (0, 0, 1, 'dev4')
21
+ __version__ = version = '0.0.1.dev6'
22
+ __version_tuple__ = version_tuple = (0, 0, 1, 'dev6')
23
23
 
24
24
  __commit_id__ = commit_id = None
File without changes
File without changes
File without changes
File without changes
File without changes