Skip to content

Commit

Permalink
Rename "run" to "async_run", as per calling conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Sep 17, 2018
1 parent f0d8a58 commit 019a0ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/__main__.py
Expand Up @@ -290,7 +290,7 @@ def open_browser(_: Any) -> None:
EVENT_HOMEASSISTANT_START, open_browser
)

return await hass.run()
return await hass.async_run()


def try_to_restart() -> None:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/core.py
Expand Up @@ -180,7 +180,7 @@ def start(self) -> int:
self.loop.close()
return self.exit_code

async def run(self, *, attach_signals: bool = True) -> int:
async def async_run(self, *, attach_signals: bool = True) -> int:
"""Home Assistant main entry point.
Start Home Assistant and block until stopped.
Expand Down

0 comments on commit 019a0ee

Please sign in to comment.