Various type hint improvements (#37952)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-07-22 08:06:37 -07:00
1 parent 3e2555e2c1
commit aa1c5fc43d
9 files changed
+30 -27

No files matched your search

+1 -2
View File
@@ -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