From fc330ce165003e15b27c867b3d2d9f609ecb63e7 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Wed, 28 Jan 2026 19:42:36 +0100 Subject: [PATCH] Let nibe library autodetect word swap on config (#161786) --- homeassistant/components/nibe_heatpump/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/nibe_heatpump/config_flow.py b/homeassistant/components/nibe_heatpump/config_flow.py index 4206c6edf73..58e8d02a634 100644 --- a/homeassistant/components/nibe_heatpump/config_flow.py +++ b/homeassistant/components/nibe_heatpump/config_flow.py @@ -96,7 +96,6 @@ async def validate_nibegw_input( """Validate the user input allows us to connect.""" heatpump = HeatPump(Model[data[CONF_MODEL]]) - heatpump.word_swap = True await heatpump.initialize() connection = NibeGW( @@ -114,6 +113,9 @@ async def validate_nibegw_input( "Address already in use", "listening_port", "address_in_use" ) from exception + if heatpump.word_swap is None: + heatpump.word_swap = True + try: await connection.verify_connectivity() except (ReadSendException, CoilWriteSendException) as exception: