mirror of
https://github.com/home-assistant/core.git
synced 2026-07-12 00:57:36 +01:00
Fix Overkiz UnoIO cover reporting wrong movement direction (#172506)
This commit is contained in:
@@ -854,6 +854,9 @@ class OverkizCover(OverkizDescriptiveEntity, CoverEntity):
|
||||
if current_value is None or target_value is None:
|
||||
return None
|
||||
|
||||
if current_value in (_POSITION_MY, _POSITION_UNKNOWN):
|
||||
return None
|
||||
|
||||
return current_value - target_value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user