hass-core/homeassistant/components/image/strings.json
Nicolas Mowen d40341f1ad
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>
2024-10-22 10:20:41 +02:00

20 lines
423 B
JSON

{
"title": "Image",
"entity_component": {
"_": {
"name": "[%key:component::image::title%]"
}
},
"services": {
"snapshot": {
"name": "Take snapshot",
"description": "Takes a snapshot from an image.",
"fields": {
"filename": {
"name": "Filename",
"description": "Template of a filename. Variable available is `entity_id`."
}
}
}
}
}