Skip to content

Commit

Permalink
fix regression for historic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmon committed Nov 15, 2023
1 parent cc98472 commit 03d6d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/linkytic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
SETUP_THREEPHASE,
SETUP_TICMODE,
SETUP_PRODUCER,
TICMODE_STANDARD,
)
from .serial_reader import LinkyTICReader

Expand All @@ -28,7 +29,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
serial_reader = LinkyTICReader(
title=entry.title,
port=entry.data.get(SETUP_SERIAL),
std_mode=entry.data.get(SETUP_TICMODE),
std_mode=entry.data.get(SETUP_TICMODE) == TICMODE_STANDARD,
producer_mode=entry.data.get(SETUP_PRODUCER),
three_phase=entry.data.get(SETUP_THREEPHASE),
real_time=entry.options.get(OPTIONS_REALTIME),
Expand Down

0 comments on commit 03d6d1b

Please sign in to comment.