Fix Peblar current limit user setting value (#133753)

This commit is contained in:
Franck Nijhof 2024-12-21 22:23:36 +01:00 committed by GitHub
parent 81ce5f4505
commit 85519a312c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ DESCRIPTIONS = [
native_max_value_fn=lambda x: x.system_information.hardware_max_current, native_max_value_fn=lambda x: x.system_information.hardware_max_current,
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE, native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
set_value_fn=lambda x, v: x.ev_interface(charge_current_limit=int(v) * 1000), set_value_fn=lambda x, v: x.ev_interface(charge_current_limit=int(v) * 1000),
value_fn=lambda x: round(x.ev.charge_current_limit_actual / 1000), value_fn=lambda x: round(x.ev.charge_current_limit / 1000),
), ),
] ]

View File

@ -53,6 +53,6 @@
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,
'state': '6', 'state': '16',
}) })
# --- # ---