Skip to content

Commit

Permalink
- round 'minChargingCurrentInA' to two digits
Browse files Browse the repository at this point in the history
  • Loading branch information
marq24 committed Jan 2, 2024
1 parent d5de900 commit aefa449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/senec/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class ExtNumberEntityDescription(NumberEntityDescription):


WEB_NUMBER_SENSOR_TYPES = [
NumberEntityDescription(
ExtNumberEntityDescription(
entity_registry_enabled_default=False,
key="spare_capacity",
name="Spare Capacity",
Expand Down Expand Up @@ -2564,7 +2564,7 @@ class ExtNumberEntityDescription(NumberEntityDescription):
ExtSensorEntityDescription(
senec_lala_section=SENEC_SECTION_WALLBOX,
entity_registry_enabled_default=False,
key="wallbox_l1_charging_current",
key="wallbox_1_l1_charging_current",
name="Wallbox I L1 charging Current",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
icon="mdi:current-dc",
Expand All @@ -2575,7 +2575,7 @@ class ExtNumberEntityDescription(NumberEntityDescription):
senec_lala_section=SENEC_SECTION_WALLBOX,
entity_registry_enabled_default=False,
key="wallbox_1_l2_charging_current",
name="Wallbox L2 charging Current",
name="Wallbox I L2 charging Current",
native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
icon="mdi:current-dc",
device_class=SensorDeviceClass.ENERGY,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/senec/pysenec_ha/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2595,7 +2595,7 @@ async def app_set_wallbox_icmax(self, value_to_set: float, wallbox_num: int = 1,
if self._app_master_plant_id is not None:
idx = wallbox_num - 1
data = {
"minChargingCurrentInA": value_to_set
"minChargingCurrentInA": float(round(value_to_set, 2))
}
wb_url = f"{self._SENEC_APP_SET_WALLBOX}" % (str(self._app_master_plant_id), str(wallbox_num))
success: bool = await self.app_post_data(a_url=wb_url, post_data=data)
Expand Down

0 comments on commit aefa449

Please sign in to comment.