mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Call async task creation api in apple_tv (#113782)
This commit is contained in:
parent
31a9c9451e
commit
f51ac30b5a
@ -153,7 +153,9 @@ class AppleTvMediaPlayer(
|
||||
atv.audio.listener = self
|
||||
|
||||
if atv.features.in_state(FeatureState.Available, FeatureName.AppList):
|
||||
self.hass.create_task(self._update_app_list())
|
||||
self.manager.config_entry.async_create_task(
|
||||
self.hass, self._update_app_list(), eager_start=True
|
||||
)
|
||||
|
||||
async def _update_app_list(self) -> None:
|
||||
_LOGGER.debug("Updating app list")
|
||||
|
Loading…
x
Reference in New Issue
Block a user