* Fix cover template: optimistic mode is ignored (#84334) * Fix invalid check in is_closed (make test pass) * Add test for non optimistic cover * Update homeassistant/components/template/cover.py Co-authored-by: Erik Montnemery <[email protected]> * Update test_cover.py * Fix format * Fix tests --------- Co-authored-by: Erik Montnemery <[email protected]>