mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -319,9 +319,7 @@ class HomeAssistant:
|
||||
elif is_callback(check_target):
|
||||
self.loop.call_soon(target, *args)
|
||||
else:
|
||||
task = self.loop.run_in_executor( # type: ignore
|
||||
None, target, *args
|
||||
)
|
||||
task = self.loop.run_in_executor(None, target, *args) # type: ignore
|
||||
|
||||
# If a task is scheduled
|
||||
if self._track_task and task is not None:
|
||||
|
||||
Reference in New Issue
Block a user