Convert template vacuum to use async_track_template_result (#39047)
* Convert template lock to use async_track_template_result * Convert template switch to use async_track_template_result * Convert template fan to use async_track_template_result * Convert template binary_sensor to use async_track_template_result Co-Authored-By: Penny Wood <Swamp-Ig@users.noreply.github.com> * Convert template cover to use async_track_template_result * Convert template light to use async_track_template_result * Convert template vacuum to use async_track_template_result Co-authored-by: Penny Wood <Swamp-Ig@users.noreply.github.com>
This commit is contained in:
1 parent
b4f0485be2
commit
5db90478f3
2 files changed
+83
-142
No files matched your search
@@ -341,9 +341,12 @@ async def test_invalid_attribute_template(hass, caplog):
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
assert len(hass.states.async_all()) == 1
|
||||
await hass.helpers.entity_component.async_update_entity("vacuum.invalid_template")
|
||||
|
||||
assert ("Error rendering attribute test_attribute") in caplog.text
|
||||
await hass.async_start()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert "test_attribute" in caplog.text
|
||||
assert "TemplateError" in caplog.text
|
||||
|
||||
|
||||
# End of template tests #
|
||||
|
||||
Reference in new issue
Block a user