summaryrefslogtreecommitdiff
path: root/src/home/api/web_api_client.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-06 20:12:45 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-06 20:12:45 +0300
commit3c6cc6528cdd1bb2adaaded5f5f36e6df25b7bfd (patch)
tree6dcd3f6dee5fc08ac321c2aa74690179dce36152 /src/home/api/web_api_client.py
parent2b70f151eed4853c62019efd8119c0d917abf8d2 (diff)
api/client: fix inverter get methods
Diffstat (limited to 'src/home/api/web_api_client.py')
-rw-r--r--src/home/api/web_api_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/home/api/web_api_client.py b/src/home/api/web_api_client.py
index 2884ddb..aac81a0 100644
--- a/src/home/api/web_api_client.py
+++ b/src/home/api/web_api_client.py
@@ -107,13 +107,13 @@ class WebAPIClient:
return files
def inverter_get_consumed_energy(self, s_from: str, s_to: str):
- return self._post('inverter/get_consumed_energy/', {
+ return self._post('inverter/consumed_energy/', {
'from': s_from,
'to': s_to
})
def inverter_get_grid_consumed_energy(self, s_from: str, s_to: str):
- return self._post('inverter/get_grid_consumed_energy/', {
+ return self._post('inverter/grid_consumed_energy/', {
'from': s_from,
'to': s_to
})