Daanoz / ha-google-photos

Home Assistant Google Photos integration
MIT License
87 stars 7 forks source link

Update sensor.py to add file URL sensor #41

Closed thekirankumar closed 1 year ago

thekirankumar commented 1 year ago

This PR will add a new sensor which exposes the Google photo URL.

I am using this URL to expose a button which sends the URL via telegram, so that I can share the photo on my phone.

Daanoz commented 1 year ago

Hi @thekirankumar , thanks for the contribution. I do think it's better to expose the url as an attribute of the camera as it's closely related to the shown media and is only usable for a short time before the token expires. I adapted your code to do this.