-
- Downloads
Add snapshot service to image entity (#110057)
* Add service definition for saving snapshot of image entity * Add service to image * Add tests for image entity service * Fix tests * Formatting * Add service icon * Formatting * Formatting * Raise home assistant error instead of single log error * Correctly pass entity id * Raise exception from existing exception * Expect home assistant error * Fix services example * Add test for templated snapshot * Correct icon service config * Set correct type for service template * Remove unneeded Co-authored-by:Erik Montnemery <erik@montnemery.com> * remove template * fix imports * Update homeassistant/components/image/__init__.py * Apply suggestions from code review --------- Co-authored-by:
Erik Montnemery <erik@montnemery.com>
Showing
- homeassistant/components/image/__init__.py 57 additions, 3 deletionshomeassistant/components/image/__init__.py
- homeassistant/components/image/icons.json 5 additions, 0 deletionshomeassistant/components/image/icons.json
- homeassistant/components/image/services.yaml 12 additions, 0 deletionshomeassistant/components/image/services.yaml
- homeassistant/components/image/strings.json 12 additions, 0 deletionshomeassistant/components/image/strings.json
- tests/components/image/conftest.py 10 additions, 0 deletionstests/components/image/conftest.py
- tests/components/image/test_init.py 113 additions, 1 deletiontests/components/image/test_init.py
Loading
Please register or sign in to comment