Skip to content

Commit

Permalink
Fixing debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuinnDamerell committed Jan 10, 2025
1 parent 8c98a56 commit 6cac895
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeway/homeway_linuxhost/ha/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def Get() -> 'Options':
# Get an option from the options file.
def GetOption(self, key: str, default: str = None) -> str:
try:
return str(self._Options.get(key, default))
val = self._Options.get(key, default)
if val is None:
return None
return str(val)
except Exception as e:
Sentry.Exception("Failed to get Ha Options key", e)
return default
Expand Down

0 comments on commit 6cac895

Please sign in to comment.