File tree Expand file tree Collapse file tree 5 files changed +9
-3
lines changed
Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# Changelog 刀 DAO
22# Day Ahead Optimizer
3+ # 2026.01.2
4+ Correct sensordata from HA with unit_of_measurement="Wh" to "kWh"
5+
36# 2026.01.1
47Fix error with space(s) in solar_name
58
Original file line number Diff line number Diff line change 11---
22name : 刀 Day Ahead Optimizer
3- version : 2026.01.1
3+ version : 2026.01.2
44slug : day_ahead_opt
55description : Home Assistant Community Add-ons for day ahead optimizations
66url : https://github.com/corneel27/day-ahead
Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ def get_sensor_data(
10371037
10381038 # when NaN in result replace with zero (0)
10391039 df_raw [col_name ] = df_raw [col_name ].fillna (0 )
1040- if df_raw .iloc [0 ]["dim" ] == "Wh" :
1040+ if len ( df_raw ) > 0 and df_raw .iloc [0 ]["dim" ] == "Wh" :
10411041 df_raw [col_name ] = df_raw [col_name ] / 1000
10421042
10431043 # Print the raw DataFrame
Original file line number Diff line number Diff line change 11# Changelog 刀 DAO
22# Day Ahead Optimizer
3+ # 2026.01.2.rc2
4+ Fixed error in Wh-correction when no ha-data are present
5+
36# 2026.01.2.rc1
47Correct sensordata from HA with unit_of_measurement="Wh" to "kWh"
58
Original file line number Diff line number Diff line change 11---
22name : 刀 Day Ahead Optimizer (TESTING)
3- version : 2026.01.2.rc1
3+ version : 2026.01.2.rc2
44stage : experimental
55slug : day_ahead_opt-testing
66description : Beta version of DAO. Use only for testing!
You can’t perform that action at this time.
0 commit comments