Skip to content

Commit

Permalink
Merge pull request #41 from thekirankumar/main
Browse files Browse the repository at this point in the history
Update sensor.py to add file URL sensor
  • Loading branch information
Daanoz committed Oct 6, 2023
2 parents 3d22012 + d3506fb commit 8029dbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/google_photos/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def _handle_coordinator_update(self) -> None:
self._attr_extra_state_attributes["media_contributor_info"] = (
media.get("contributorInfo") or {}
)
self._attr_extra_state_attributes["media_url"] = (
media.get("productUrl") or {}
)
self.async_write_ha_state()

def next_media(self, mode=None):
Expand Down

0 comments on commit 8029dbb

Please sign in to comment.