mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Use uvloop for asyncio policy (#3417)
This commit is contained in:
committed by
Paulus Schoutsen
parent
43c395232a
commit
54248863b3
@@ -40,6 +40,12 @@ import homeassistant.util.dt as dt_util
|
||||
import homeassistant.util.location as location
|
||||
from homeassistant.util.unit_system import UnitSystem, METRIC_SYSTEM # NOQA
|
||||
|
||||
try:
|
||||
import uvloop
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
DOMAIN = "homeassistant"
|
||||
|
||||
# How often time_changed event should fire
|
||||
|
||||
Reference in New Issue
Block a user