python-openevse-http 0.1.70__tar.gz → 0.1.71__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.1
2
2
  Name: python_openevse_http
3
- Version: 0.1.70
3
+ Version: 0.1.71
4
4
  Summary: Python wrapper for OpenEVSE HTTP API
5
5
  Home-page: https://github.com/firstof9/python-openevse-http
6
6
  Author: firstof9
@@ -1384,13 +1384,24 @@ class OpenEVSE:
1384
1384
 
1385
1385
  # Safety counts
1386
1386
  @property
1387
- def checks_count(self) -> dict | None:
1387
+ def checks_count(self) -> dict:
1388
1388
  """Return the saftey checks counts."""
1389
1389
  attributes = ("gfcicount", "nogndcount", "stuckcount")
1390
+ counts = {}
1390
1391
  if self._status is not None and set(attributes).issubset(self._status.keys()):
1391
- counts = {}
1392
1392
  counts["gfcicount"] = self._status["gfcicount"]
1393
1393
  counts["nogndcount"] = self._status["nogndcount"]
1394
1394
  counts["stuckcount"] = self._status["stuckcount"]
1395
- return counts
1396
- return None
1395
+ return counts
1396
+
1397
+ @property
1398
+ async def async_override_state(self) -> str | None:
1399
+ """Return the unit override state."""
1400
+ try:
1401
+ override = await self.get_override()
1402
+ except UnsupportedFeature:
1403
+ _LOGGER.debug("Override state unavailable on older firmware.")
1404
+ return None
1405
+ if "state" in override.keys():
1406
+ return override["state"]
1407
+ return "auto"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-openevse-http
3
- Version: 0.1.70
3
+ Version: 0.1.71
4
4
  Summary: Python wrapper for OpenEVSE HTTP API
5
5
  Home-page: https://github.com/firstof9/python-openevse-http
6
6
  Author: firstof9
@@ -6,7 +6,7 @@ from setuptools import find_packages, setup
6
6
 
7
7
  PROJECT_DIR = Path(__file__).parent.resolve()
8
8
  README_FILE = PROJECT_DIR / "README.md"
9
- VERSION = "0.1.70"
9
+ VERSION = "0.1.71"
10
10
 
11
11
  setup(
12
12
  name="python_openevse_http",