Skip to content

Commit 3e105a6

Browse files
authored
Version 2026.01.2 (#527)
* Fixed error in Wh-correction when no ha-data are present * Version 2026.01.2/2026.01.2.rc2
1 parent 3b95fa9 commit 3e105a6

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

dao/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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
47
Fix error with space(s) in solar_name
58

dao/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: 刀 Day Ahead Optimizer
3-
version: 2026.01.1
3+
version: 2026.01.2
44
slug: day_ahead_opt
55
description: Home Assistant Community Add-ons for day ahead optimizations
66
url: https://github.com/corneel27/day-ahead

dao/prog/da_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

release-testing/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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
47
Correct sensordata from HA with unit_of_measurement="Wh" to "kWh"
58

release-testing/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: 刀 Day Ahead Optimizer (TESTING)
3-
version: 2026.01.2.rc1
3+
version: 2026.01.2.rc2
44
stage: experimental
55
slug: day_ahead_opt-testing
66
description: Beta version of DAO. Use only for testing!

0 commit comments

Comments
 (0)