Skip to content

Commit 3a9ce6e

Browse files
authored
Fix function documentaion (#78)
- grid_power_in/out was swapped in the db_data functions - fix typos Co-authored-by: Torben Nehmer <torben@nehmer.net>
1 parent 85762f2 commit 3a9ce6e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

e3dc/_e3dc.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,11 @@ def get_db_data_timestamp(
846846
{
847847
"autarky": <autarky in the period in %>,
848848
"bat_power_in": <power entering battery, charging>,
849-
"bat_power_out": <power leavinb battery, discharging>,
849+
"bat_power_out": <power leaving battery, discharging>,
850850
"consumed_production": <power directly consumed in %>,
851851
"consumption": <self consumed power>,
852-
"grid_power_in": <power taken from the grid>,
853-
"grid_power_out": <power into the grid>,
852+
"grid_power_in": <power sent into the grid (production)>,
853+
"grid_power_out": <power taken from the grid (consumption)>,
854854
"startTimestamp": <timestamp from which db data is fetched of>,
855855
"stateOfCharge": <battery charge level in %>,
856856
"solarProduction": <power production>,
@@ -908,11 +908,11 @@ def get_db_data(
908908
{
909909
"autarky": <autarky in the period in %>,
910910
"bat_power_in": <power entering battery, charging>,
911-
"bat_power_out": <power leavinb battery, discharging>,
911+
"bat_power_out": <power leaving battery, discharging>,
912912
"consumed_production": <power directly consumed in %>,
913913
"consumption": <self consumed power>,
914-
"grid_power_in": <power taken from the grid>,
915-
"grid_power_out": <power into the grid>,
914+
"grid_power_in": <power sent into the grid (production)>,
915+
"grid_power_out": <power taken from the grid (consumption)>,
916916
"startDate": <date from which db data is fetched of>,
917917
"stateOfCharge": <battery charge level in %>,
918918
"solarProduction": <power production>,

0 commit comments

Comments
 (0)