mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 03:21:40 +02:00
Correct missing wordswap for S series nibe (#89866)
Correct missing wordswap for nibe
This commit is contained in:
committed by
Paulus Schoutsen
parent
1e03ff68a2
commit
713d3025f2
@@ -62,13 +62,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up Nibe Heat Pump from a config entry."""
|
||||
|
||||
heatpump = HeatPump(Model[entry.data[CONF_MODEL]])
|
||||
heatpump.word_swap = entry.data.get(CONF_WORD_SWAP, True)
|
||||
await heatpump.initialize()
|
||||
|
||||
connection: Connection
|
||||
connection_type = entry.data[CONF_CONNECTION_TYPE]
|
||||
|
||||
if connection_type == CONF_CONNECTION_TYPE_NIBEGW:
|
||||
heatpump.word_swap = entry.data[CONF_WORD_SWAP]
|
||||
connection = NibeGW(
|
||||
heatpump,
|
||||
entry.data[CONF_IP_ADDRESS],
|
||||
|
Reference in New Issue
Block a user