Skip to content

Commit

Permalink
fix init hangup handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkojon committed Mar 22, 2024
1 parent 912465f commit 81bd35e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/chuck_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try:
await hass.async_add_executor_job(chargebox.update)
except chuck_rest.ChuckRestTimeout:
raise PlatformNotReady(
raise ConfigEntryNotReady(
f"Could not connect to chargebox {chargebox_cfg['friendly_name']} at {chargebox_cfg['base_url']}"
)
except chuck_rest.ChuckAuthError:
raise ConfigEntryAuthFailed(
f"Wrong username or password supplied for chargebox {chargebox_cfg['friendly_name']} at {chargebox_cfg['base_url']}"
)
except:
raise PlatformNotReady(
raise ConfigEntryNotReady(
f"Unknown error connecting to chargebox {chargebox_cfg['friendly_name']} at {chargebox_cfg['base_url']}"
)

Expand Down

0 comments on commit 81bd35e

Please sign in to comment.