mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Reset state of template cover on error (#88915)
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user