Various type hint improvements (#37952)
This commit is contained in:
1 parent
3e2555e2c1
commit
aa1c5fc43d
9 files changed
+30
-27
No files matched your search
@@ -95,8 +95,7 @@ class Store:
|
||||
the second call will wait and return the result of the first call.
|
||||
"""
|
||||
if self._load_task is None:
|
||||
self._load_task = self.hass.async_add_job(self._async_load())
|
||||
assert self._load_task is not None
|
||||
self._load_task = self.hass.async_create_task(self._async_load())
|
||||
|
||||
return await self._load_task
|
||||
|
||||
|
||||
Reference in new issue
Block a user