Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions custom_components/plugwise_usb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ async def async_node_discovered(node_event: NodeEvent, mac: str) -> None:
_LOGGER.info("Start to discover the Plugwise network coordinator (Circle+)")
try:
await api_stick.discover_coordinator(load=False)
except StickError as exc:
await api_stick.disconnect()
raise ConfigEntryNotReady("Failed to connect to Circle+") from exc
except StickError: # as exc:
# await api_stick.disconnect()
# raise ConfigEntryNotReady("Failed to connect to Circle+") from exc
_LOGGER.warning("Failed to connect to Circle+")

# Load platforms to allow them to register for node events
await hass.config_entries.async_forward_entry_setups(
Expand Down
Loading