Skip to content

Commit

Permalink
Correctly pass entity id
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Apr 21, 2024
1 parent 897c54e commit 0182e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async def async_handle_snapshot_service(
filename: Template = service_call.data[ATTR_FILENAME]
filename.hass = hass

snapshot_file = filename.async_render(variables={ATTR_ENTITY_ID: image})
snapshot_file = filename.async_render(variables={ATTR_ENTITY_ID: image.entity_id})

# check if we allow to access to that file
if not hass.config.is_allowed_path(snapshot_file):
Expand Down

0 comments on commit 0182e5e

Please sign in to comment.