mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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:
|
if not self._position_template:
|
||||||
self._position = None
|
self._position = None
|
||||||
|
|
||||||
|
self._is_opening = False
|
||||||
|
self._is_closing = False
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _update_position(self, result):
|
def _update_position(self, result):
|
||||||
try:
|
try:
|
||||||
|
@ -72,7 +72,7 @@ OPEN_CLOSE_COVER_CONFIG = {
|
|||||||
(
|
(
|
||||||
"cover.test_state",
|
"cover.test_state",
|
||||||
"dog",
|
"dog",
|
||||||
STATE_CLOSING,
|
STATE_UNKNOWN,
|
||||||
{},
|
{},
|
||||||
-1,
|
-1,
|
||||||
"Received invalid cover is_on state: dog",
|
"Received invalid cover is_on state: dog",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user