Skip to content

Commit

Permalink
Fix Home Assistant Core API check
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Nov 2, 2023
1 parent 18e422c commit 71d7b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/homeassistant/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,6 @@ async def get_api_state(self) -> str | None:

async def check_api_state(self) -> bool:
"""Return Home Assistant Core state if up."""
if state := self.get_api_state():
if state := await self.get_api_state():
return state == "RUNNING"
return False

0 comments on commit 71d7b0a

Please sign in to comment.