mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Address PR comments
This commit is contained in:
@@ -39,7 +39,7 @@ def _parse_int(val: str) -> int:
|
||||
"""
|
||||
try:
|
||||
return int(val)
|
||||
except Exception: # noqa: BLE001
|
||||
except (TypeError, ValueError):
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user