Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions homeassistant/components/cover/tahoma.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,9 @@ def stop_cover(self, **kwargs):
self.apply_action('setPosition', 'secured')
elif self.tahoma_device.type == 'rts:BlindRTSComponent':
self.apply_action('my')
elif self.tahoma_device.type == 'io:RollerShutterUnoIOComponent':

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's the same command, please use a single if check:

elif self.tahoma_device.type in ('bla', 'bli', 'blub'):

self.apply_action('my')
elif self.tahoma_device.type == 'io:ExteriorVenetianBlindIOComponent':
self.apply_action('my')
else:
self.apply_action('stopIdentify')
2 changes: 2 additions & 0 deletions homeassistant/components/tahoma.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
'rts:CurtainRTSComponent': 'cover',
'rts:BlindRTSComponent': 'cover',
'rts:VenetianBlindRTSComponent': 'cover',
'io:ExteriorVenetianBlindIOComponent': 'cover',
'io:RollerShutterUnoIOComponent': 'cover',
'io:RollerShutterWithLowSpeedManagementIOComponent': 'cover',
'io:RollerShutterVeluxIOComponent': 'cover',
'io:RollerShutterGenericIOComponent': 'cover',
Expand Down