From 48f1aa0f2c28cbeea9306e706d31f4c50eb5bcf5 Mon Sep 17 00:00:00 2001 From: sfstar Date: Mon, 17 Nov 2025 00:05:21 +0000 Subject: [PATCH] fix 2025.12 deprecation of config flow entries --- custom_components/victron/config_flow.py | 1 - custom_components/victron/number.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/victron/config_flow.py b/custom_components/victron/config_flow.py index 0eabab3..1804977 100644 --- a/custom_components/victron/config_flow.py +++ b/custom_components/victron/config_flow.py @@ -299,7 +299,6 @@ class VictronOptionFlowHandler(config_entries.OptionsFlow): def __init__(self, config_entry: ConfigEntry) -> None: """Initialize options flow.""" - self.config_entry = config_entry self.area = None async def async_step_advanced(self, user_input=None): diff --git a/custom_components/victron/number.py b/custom_components/victron/number.py index a1e9aa5..67a09b6 100644 --- a/custom_components/victron/number.py +++ b/custom_components/victron/number.py @@ -125,7 +125,7 @@ def determine_min_value( ) if powerType == "AC" else ( - int(config_entry[CONF_DC_SYSTEM_VOLTAGE].dc_voltage) + int(config_entry[CONF_DC_SYSTEM_VOLTAGE]) * config_entry[CONF_DC_CURRENT_LIMIT] ) )