summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-06 20:37:37 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-06 20:41:08 +0300
commit28c67c4510a3bee574b4077be35147dba257c8f7 (patch)
tree4bd3f53afe1a1b7e21c766f30c95bd6919d8c81c /src/home
parent3c6cc6528cdd1bb2adaaded5f5f36e6df25b7bfd (diff)
api: fix inverter methods
Diffstat (limited to 'src/home')
-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 aac81a0..f359b11 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/consumed_energy/', {
+ return self._get('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/grid_consumed_energy/', {
+ return self._get('inverter/grid_consumed_energy/', {
'from': s_from,
'to': s_to
})