Fix current_cover_position (#13135)
This commit is contained in:
parent
4bd6776443
commit
7fd687f59c
1 changed files with 3 additions and 1 deletions
|
@ -234,7 +234,9 @@ class CoverTemplate(CoverDevice):
|
|||
|
||||
None is unknown, 0 is closed, 100 is fully open.
|
||||
"""
|
||||
return self._position
|
||||
if self._position_template or self._position_script:
|
||||
return self._position
|
||||
return None
|
||||
|
||||
@property
|
||||
def current_cover_tilt_position(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue