mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Reset state of template cover on error (#88915)
This commit is contained in:
parent
ac6bbc2f1c
commit
7bfc7f134c
@ -233,6 +233,9 @@ class CoverTemplate(TemplateEntity, CoverEntity):
|
||||
if not self._position_template:
|
||||
self._position = None
|
||||
|
||||
self._is_opening = False
|
||||
self._is_closing = False
|
||||
|
||||
@callback
|
||||
def _update_position(self, result):
|
||||
try:
|
||||
|
@ -72,7 +72,7 @@ OPEN_CLOSE_COVER_CONFIG = {
|
||||
(
|
||||
"cover.test_state",
|
||||
"dog",
|
||||
STATE_CLOSING,
|
||||
STATE_UNKNOWN,
|
||||
{},
|
||||
-1,
|
||||
"Received invalid cover is_on state: dog",
|
||||
|
Loading…
x
Reference in New Issue
Block a user