I was looking for code I could use for Ring camera in HomeAssistant. Found this for downloading videos via Python Script. I do not know much, if anything about Python coding but I copied code and transferred to my HA and got an error. Is the Python code supposed to be like this?
Hey there @sdb9696, mind taking a look at this feedback as it has been labeled with an integration (ring) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of `ring` can trigger bot actions by commenting:
- `@home-assistant close` Closes the feedback.
- `@home-assistant rename Awesome new title` Renames the feedback.
- `@home-assistant reopen` Reopen the feedback.
- `@home-assistant unassign ring` Removes the current integration label and assignees on the feedback, add the integration domain after the command.
- `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback.
- `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
Feedback
I was looking for code I could use for Ring camera in HomeAssistant. Found this for downloading videos via Python Script. I do not know much, if anything about Python coding but I copied code and transferred to my HA and got an error. Is the Python code supposed to be like this?
... subdirname = f"ring{ring_cam.attributes.get('friendly_name')}" ...
More specifically the usage of 'f"ring'.
Truly hope this is helpful as I'm not trying to be an annoyance.
Thanks for the review!
Sam
URL
https://www.home-assistant.io/integrations/ring/
Version
2024.7.3
Additional information
No response