Skip to content

Commit 2f30334

Browse files
author
lbbrhzn
committed
fix collating number entities
1 parent 111b704 commit 2f30334

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

custom_components/ocpp/number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def async_setup_entry(hass, entry, async_add_devices):
6464
if ent.key == "maximum_current":
6565
ent.initial_value = entry.data.get(CONF_MAX_CURRENT, DEFAULT_MAX_CURRENT)
6666
ent.max_value = entry.data.get(CONF_MAX_CURRENT, DEFAULT_MAX_CURRENT)
67-
entities.append(OcppNumber(hass, central_system, cp_id, ent))
67+
entities.append(OcppNumber(hass, central_system, cp_id, ent))
6868

6969
async_add_devices(entities, False)
7070

tests/test_charge_point.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from custom_components.ocpp.button import BUTTONS
1919
from custom_components.ocpp.const import DOMAIN as OCPP_DOMAIN
2020
from custom_components.ocpp.enums import ConfigurationKey, HAChargerServices as csvcs
21-
from custom_components.ocpp.number import NUMBERS
2221
from custom_components.ocpp.switch import SWITCHES
2322
from ocpp.routing import on
2423
from ocpp.v16 import ChargePoint as cpclass, call, call_result

0 commit comments

Comments
 (0)