From 03d6d1b1198919b1e64ce6f78fe8319cf4e9e7f2 Mon Sep 17 00:00:00 2001 From: Hekmon Date: Wed, 15 Nov 2023 17:58:33 +0100 Subject: [PATCH] fix regression for historic mode --- custom_components/linkytic/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/linkytic/__init__.py b/custom_components/linkytic/__init__.py index 04080e7..5616d82 100644 --- a/custom_components/linkytic/__init__.py +++ b/custom_components/linkytic/__init__.py @@ -14,6 +14,7 @@ SETUP_THREEPHASE, SETUP_TICMODE, SETUP_PRODUCER, + TICMODE_STANDARD, ) from .serial_reader import LinkyTICReader @@ -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),