mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix set tilt position (#30428)
This commit is contained in:
parent
3a18ef219b
commit
f5aa89dd06
@ -91,15 +91,15 @@ class SomfyCover(SomfyEntity, CoverDevice):
|
||||
|
||||
def set_cover_tilt_position(self, **kwargs):
|
||||
"""Move the cover tilt to a specific position."""
|
||||
self.cover.orientation = kwargs[ATTR_TILT_POSITION]
|
||||
self.cover.orientation = 100 - kwargs[ATTR_TILT_POSITION]
|
||||
|
||||
def open_cover_tilt(self, **kwargs):
|
||||
"""Open the cover tilt."""
|
||||
self.cover.orientation = 100
|
||||
self.cover.orientation = 0
|
||||
|
||||
def close_cover_tilt(self, **kwargs):
|
||||
"""Close the cover tilt."""
|
||||
self.cover.orientation = 0
|
||||
self.cover.orientation = 100
|
||||
|
||||
def stop_cover_tilt(self, **kwargs):
|
||||
"""Stop the cover."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user