[online_image] Use register_apply_action for the set_url and release actions (#19547)

This commit is contained in:
J. Nick Koston
2026-09-24 08:51:30 -04:00
committed by GitHub
parent eae8ff7f91
commit e98c4bd375
3 changed files with 27 additions and 58 deletions
+11
View File
@@ -84,3 +84,14 @@ esphome:
id: online_rgba_image
url: !lambda |-
return str_sprintf("http://homeassistant.local:8123");
- online_image.set_url:
id: online_rgba_image
url: http://www.example.org/example.png
update: false
- online_image.set_url:
id: online_rgba_image
url: http://www.example.org/example.png
update: !lambda return id(online_rgba_image).get_width() > 0;
- online_image.release: online_rgba_image
- online_image.release:
id: online_rgb24_image