Use async api in yamaha_musiccast to create tasks (#113785)

pull/113796/head
J. Nick Koston 2024-03-18 21:43:27 -10:00 committed by GitHub
parent 2f88460b68
commit 3bb0d04452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -927,4 +927,4 @@ class MusicCastMediaPlayer(MusicCastDeviceEntity, MediaPlayerEntity):
@callback
def async_schedule_check_client_list(self):
"""Schedule async_check_client_list."""
self.hass.create_task(self.async_check_client_list())
self.hass.async_create_task(self.async_check_client_list(), eager_start=True)