Skip to content

Commit

Permalink
remove unused try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolivierarsenault committed Nov 26, 2023
1 parent e1057d2 commit 5542387
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions custom_components/moonraker/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ async def async_setup_entry(
_LOGGER.info("Could not add any cameras from the API list")

if camera_cnt == 0:
try:
_LOGGER.info("No Camera in the list, trying hardcoded")
async_add_entities(
[MoonrakerCamera(config_entry, coordinator, hardcoded_camera, 0)]
)
except Exception:
_LOGGER.info("Could not add hardcoded camera")
_LOGGER.info("No Camera in the list, trying hardcoded")
async_add_entities(
[MoonrakerCamera(config_entry, coordinator, hardcoded_camera, 0)]
)

async_add_entities(
[
Expand Down

0 comments on commit 5542387

Please sign in to comment.