python-openevse-http 0.1.81__tar.gz → 0.1.83__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.81 → python_openevse_http-0.1.83}/PKG-INFO +1 -1
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/openevsehttp/__main__.py +5 -8
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/setup.py +1 -1
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/README.md +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/openevsehttp/websocket.py +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.81 → python_openevse_http-0.1.83}/setup.cfg +0 -0
|
@@ -876,19 +876,16 @@ class OpenEVSE:
|
|
|
876
876
|
async def set_divert_mode(self, mode: str = "fast") -> None:
|
|
877
877
|
"""Set the divert mode."""
|
|
878
878
|
url = f"{self.url}divertmode"
|
|
879
|
-
|
|
880
879
|
if mode not in ["fast", "eco"]:
|
|
881
|
-
_LOGGER.error("Invalid value for
|
|
880
|
+
_LOGGER.error("Invalid value for divert mode: %s", mode)
|
|
882
881
|
raise ValueError
|
|
883
|
-
|
|
884
882
|
_LOGGER.debug("Setting divert mode to %s", mode)
|
|
885
|
-
|
|
886
883
|
# convert text to int
|
|
887
884
|
new_mode = divert_mode[mode]
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
885
|
+
|
|
886
|
+
data = f"divertmode={new_mode}"
|
|
887
|
+
|
|
888
|
+
response = await self.process_request(url=url, method="post", rapi=data)
|
|
892
889
|
if response != "Divert Mode changed":
|
|
893
890
|
_LOGGER.error("Problem issuing command: %s", response)
|
|
894
891
|
raise UnknownError
|
|
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
|