python-openevse-http 0.1.71__tar.gz → 0.1.73__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.71
3
+ Version: 0.1.73
4
4
  Summary: Python wrapper for OpenEVSE HTTP API
5
5
  Home-page: https://github.com/firstof9/python-openevse-http
6
6
  Author: firstof9
@@ -397,7 +397,7 @@ class OpenEVSE:
397
397
  raise UnsupportedFeature
398
398
  url = f"{self.url}override"
399
399
 
400
- data: dict[str, Any] = {}
400
+ data: dict[str, Any] = await self.get_override()
401
401
 
402
402
  if state not in ["active", "disabled", None]:
403
403
  _LOGGER.error("Invalid override state: %s", state)
@@ -644,7 +644,6 @@ class OpenEVSE:
644
644
  return False
645
645
 
646
646
  # HTTP Posting of grid voltage
647
-
648
647
  async def grid_voltage(self, voltage: int | None = None) -> None:
649
648
  """Send pushed sensor data to grid voltage."""
650
649
  if not self._version_check("4.0.0"):
@@ -665,7 +664,6 @@ class OpenEVSE:
665
664
  _LOGGER.debug("Voltage posting response: %s", response)
666
665
 
667
666
  # Self production HTTP Posting
668
-
669
667
  async def self_production(
670
668
  self,
671
669
  grid: int | None = None,
@@ -743,7 +741,7 @@ class OpenEVSE:
743
741
  raise UnsupportedFeature
744
742
 
745
743
  url = f"{self.url}limit"
746
- data: Dict[str, Any] = {}
744
+ data: Dict[str, Any] = await self.get_limit()
747
745
  valid_types = ["time", "energy", "soc", "range"]
748
746
 
749
747
  if limit_type not in valid_types:
@@ -1274,6 +1272,7 @@ class OpenEVSE:
1274
1272
  return round(self._status["voltage"] * self._status["amp"], 2)
1275
1273
  return None
1276
1274
 
1275
+ # Shaper values
1277
1276
  @property
1278
1277
  def shaper_active(self) -> bool | None:
1279
1278
  """Return if shper is active."""
@@ -1304,6 +1303,14 @@ class OpenEVSE:
1304
1303
  return self._status["shaper_max_pwr"]
1305
1304
  return None
1306
1305
 
1306
+ @property
1307
+ def shaper_updated(self) -> bool:
1308
+ """Return shaper updated boolean."""
1309
+ if self._status is not None and "shaper_updated" in self._status:
1310
+ return self._status["shaper_updated"]
1311
+ return False
1312
+
1313
+ # Vehicle values
1307
1314
  @property
1308
1315
  def vehicle_soc(self) -> int | None:
1309
1316
  """Return battery level."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-openevse-http
3
- Version: 0.1.71
3
+ Version: 0.1.73
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.71"
9
+ VERSION = "0.1.73"
10
10
 
11
11
  setup(
12
12
  name="python_openevse_http",