Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for image entities in the camera widget #4139

Closed
watermarkhu opened this issue Jan 15, 2024 · 2 comments · Fixed by #4159
Closed

Support for image entities in the camera widget #4139

watermarkhu opened this issue Jan 15, 2024 · 2 comments · Fixed by #4159
Labels
enhancement New feature or request widget

Comments

@watermarkhu
Copy link

Starting from 2023.7, image entities where introduced as a simplified version of the camera entity.

The current camera widget however does not support these image entities, and it only allows for camera entities to be selected in the configuration menu.

@watermarkhu watermarkhu added the enhancement New feature or request label Jan 15, 2024
@dshokouhi
Copy link
Member

so do we need to rename this widget to be "Picture Widget" to be more accurate? 😂 Look like we just need to slightly modify the API call for this.

https://github.com/home-assistant/core/blob/dev/homeassistant/components/image/__init__.py#L45

@jpelgrom
Copy link
Member

We actually don't need to make any changes to the API call, image entities also have a entity_picture attribute we can use that works the same as a camera's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widget
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants