Skip to content

Commit a7e76d4

Browse files
committed
Fix regression in last version
1 parent 3a71003 commit a7e76d4

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

custom_components/victron_mqtt/config_flow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ async def validate_input(data: dict[str, Any]) -> str:
112112
assert hub.installation_id is not None
113113
return hub.installation_id
114114

115-
class VictronMQTTConfigFlow(ConfigFlow):
115+
class VictronMQTTConfigFlow(ConfigFlow, domain=DOMAIN):
116116
"""Handle a config flow for victronvenus."""
117117

118118
VERSION = 1
119-
DOMAIN = DOMAIN
120119

121120
def __init__(self) -> None:
122121
"""Initialize."""

custom_components/victron_mqtt/hub.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ async def start(self):
9191
try:
9292
await self._hub.connect()
9393
except CannotConnectError as connect_error:
94-
_LOGGER.error("Cannot connect to the hub")
95-
raise ConfigEntryNotReady("Device is offline") from connect_error
94+
raise ConfigEntryNotReady(f"Cannot connect to the hub: {connect_error}") from connect_error
9695

9796
@callback
9897
async def stop(self, event: Event):

custom_components/victron_mqtt/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"X_MqttOnLan": "1"
2020
}
2121
],
22-
"version": "2025.10.5"
22+
"version": "2025.10.6"
2323
}

0 commit comments

Comments
 (0)