mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix current_cover_position (#13135)
This commit is contained in:
parent
4bd6776443
commit
7fd687f59c
@ -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…
x
Reference in New Issue
Block a user