From aed25f6d0add3c6a4dbc449e226d3384c30f4168 Mon Sep 17 00:00:00 2001 From: mletenay Date: Sun, 26 May 2024 11:38:28 +0200 Subject: [PATCH] Add missing param to set param call --- README.md | 2 ++ custom_components/goodwe/number.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 867473f..a719efb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ Use at own risk. - Network configuration parameters `Scan iterval`, `Network retry attempts`, `Network request timeout`. - Switch `Export Limit Switch`. - Switch `Load Control` (for ET+ inverters). +- Switch and SoC/Power inputs for `Fast Charging` functionality. +- `Start inverter` and `Stop inverter` buttons for grid-only inverters. - Services for getting/setting inverter configuration parameters ### Migration from HACS to HA diff --git a/custom_components/goodwe/number.py b/custom_components/goodwe/number.py index db96e36..a965457 100644 --- a/custom_components/goodwe/number.py +++ b/custom_components/goodwe/number.py @@ -117,7 +117,7 @@ def _get_setting_unit(inverter: Inverter, setting: str) -> str: native_max_value=100, getter=lambda inv: inv.read_setting("fast_charging_power"), mapper=lambda v: v, - setter=lambda inv, val: inv.write_setting("fast_charging_power"), + setter=lambda inv, val: inv.write_setting("fast_charging_power", val), filter=lambda inv: True, ), GoodweNumberEntityDescription(