Add version test for monkey_patch_asyncio() (#5127)
* Add version test for monkey_patch_asyncio() * Update __main__.py
This commit is contained in:
parent
f71027a9c7
commit
52f6fe3e06
1 changed files with 2 additions and 1 deletions
|
@ -356,7 +356,8 @@ def try_to_restart() -> None:
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
"""Start Home Assistant."""
|
"""Start Home Assistant."""
|
||||||
monkey_patch_asyncio()
|
if sys.version_info[:3] < (3, 5, 3):
|
||||||
|
monkey_patch_asyncio()
|
||||||
|
|
||||||
validate_python()
|
validate_python()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue