Skip to content

Commit

Permalink
Merge pull request #51 from Daanoz/fix/Error-calling-next_media-after…
Browse files Browse the repository at this point in the history
…-core-update-2024.5.0-48

fix: Error calling next_media after core update 2024.5.0 #48
  • Loading branch information
Daanoz authored May 9, 2024
2 parents 4f71c63 + f317b15 commit 11e9dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/google_photos/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def _handle_coordinator_update(self) -> None:
)
self.async_write_ha_state()

def next_media(self, mode=None):
async def next_media(self, mode=None):
"""Load the next media."""
self.hass.async_add_job(self.coordinator.select_next(mode))
await self.coordinator.select_next(mode)

async def async_camera_image(
self, width: int | None = None, height: int | None = None
Expand Down

0 comments on commit 11e9dae

Please sign in to comment.