Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions custom_components/easee/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ def check_circuit_current(
compare_str_p1,
compare_str_p2,
compare_str_p3,
time_to_live,
):
"""Check circuit current."""
if current_p2 is None:
Expand Down Expand Up @@ -889,9 +890,11 @@ def check_circuit_current(
compare_p3 = compare_p1

if (
compare_p1 != current_p1
or compare_p2 != current_p2
or compare_p3 != current_p3
(
compare_p1 != current_p1
or compare_p2 != current_p2
or compare_p3 != current_p3
) or time_to_live is not None
):
return charger_data.circuit

Expand All @@ -907,6 +910,7 @@ def check_charger_current(
compare_str_p1,
compare_str_p2,
compare_str_p3,
time_to_live,
):
"""Check charger current."""
if current_p2 is None:
Expand Down Expand Up @@ -939,9 +943,11 @@ def check_charger_current(
compare_p3 = compare_p1

if (
compare_p1 != current_p1
or compare_p2 != current_p2
or compare_p3 != current_p3
(
compare_p1 != current_p1
or compare_p2 != current_p2
or compare_p3 != current_p3
) or time_to_live is not None
):
return charger_data.product

Expand Down
2 changes: 2 additions & 0 deletions custom_components/easee/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ async def circuit_execute_set_current(call):
compare["P1"],
compare["P2"],
compare["P3"],
time_to_live,
)
if circuit:
function_call = getattr(circuit, function_name["function_call"])
Expand Down Expand Up @@ -796,6 +797,7 @@ async def charger_execute_set_current(call):
compare["P1"],
compare["P2"],
compare["P3"],
time_to_live,
)
if charger:
function_call = getattr(charger, function_name["function_call"])
Expand Down
Loading