Skip to content

Commit

Permalink
Fix flash EZSP firmware for chip without firmware (broken state)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jul 21, 2023
1 parent 5efe90c commit 2f6956f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_gateway3/core/ezsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ async def read_firmware(host: str) -> Optional[str]:
# noinspection PyProtectedMember
await asyncio.wait_for(ezsp._probe(), timeout=10)
_, _, version = await ezsp.get_board_info()
except asyncio.TimeoutError:
except Exception as e:
_LOGGER.debug(f"{host} [FWUP] Read firmware error: {e}")
return None
finally:
ezsp.close()
Expand Down

0 comments on commit 2f6956f

Please sign in to comment.