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.
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/PKG-INFO +1 -1
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/openevsehttp/__main__.py +15 -4
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/setup.py +1 -1
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/README.md +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/openevsehttp/websocket.py +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.70 → python_openevse_http-0.1.71}/setup.cfg +0 -0
|
@@ -1384,13 +1384,24 @@ class OpenEVSE:
|
|
|
1384
1384
|
|
|
1385
1385
|
# Safety counts
|
|
1386
1386
|
@property
|
|
1387
|
-
def checks_count(self) -> dict
|
|
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
|
-
|
|
1396
|
-
|
|
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"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|