From f5aa89dd060cf804364865fd637ca7934968478e Mon Sep 17 00:00:00 2001 From: tetienne Date: Fri, 3 Jan 2020 11:31:05 +0100 Subject: [PATCH] Fix set tilt position (#30428) --- homeassistant/components/somfy/cover.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/somfy/cover.py b/homeassistant/components/somfy/cover.py index 5eabe7ee07a..b48e326162d 100644 --- a/homeassistant/components/somfy/cover.py +++ b/homeassistant/components/somfy/cover.py @@ -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."""