From 6fed4246246472840f875d50b4b62f8a040ec99a Mon Sep 17 00:00:00 2001 From: Alex Wijnholds Date: Sat, 6 Jan 2024 21:38:37 +0100 Subject: [PATCH] Small fix for compatibility with HA 2024+ --- custom_components/sat/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/sat/config_flow.py b/custom_components/sat/config_flow.py index d72627bb..5f18b186 100644 --- a/custom_components/sat/config_flow.py +++ b/custom_components/sat/config_flow.py @@ -38,7 +38,7 @@ async def async_step_user(self, _user_input=None) -> FlowResult: menu_options = [] # Since we rely on the availability logic in 2023.5, we do not support it below it. - if MAJOR_VERSION >= 2023 and MINOR_VERSION >= 5: + if MAJOR_VERSION >= 2023 and (MINOR_VERSION >= 5 or MAJOR_VERSION > 2023): menu_options.append("mqtt") menu_options.append("serial")