From 5e81736f8804dd0c3752689ad44ead351dc5e0a5 Mon Sep 17 00:00:00 2001 From: Thijs de Jong Date: Sat, 13 Jan 2018 09:06:37 +0100 Subject: [PATCH] patch stop command (#11612) --- homeassistant/components/cover/tahoma.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/cover/tahoma.py b/homeassistant/components/cover/tahoma.py index 7ec09c781d2..9968e3d6503 100644 --- a/homeassistant/components/cover/tahoma.py +++ b/homeassistant/components/cover/tahoma.py @@ -15,11 +15,6 @@ DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) -TAHOMA_STOP_COMMAND = { - 'io:RollerShutterWithLowSpeedManagementIOComponent': 'my', - 'io:RollerShutterVeluxIOComponent': 'my', -} - SCAN_INTERVAL = timedelta(seconds=60) @@ -78,8 +73,11 @@ class TahomaCover(TahomaDevice, CoverDevice): def stop_cover(self, **kwargs): """Stop the cover.""" - self.apply_action(TAHOMA_STOP_COMMAND.get(self.tahoma_device.type, - 'stopIdentify')) + if self.tahoma_device.type == \ + 'io:RollerShutterWithLowSpeedManagementIOComponent': + self.apply_action('setPosition', 'secured') + else: + self.apply_action('stopIdentify') def device_class(self): """Return the class of this device, from component DEVICE_CLASSES."""