Add 2 devices to Tohoma cover#14321
Conversation
io:RollerShutterUnoIOComponent io:ExteriorVenetianBlindIOComponent
| self.apply_action('setPosition', 'secured') | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent': | ||
| self.apply_action('my') | ||
| elif self.tahoma_device.type == 'io:RollerShutterUnoIOComponent': |
There was a problem hiding this comment.
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') | ||
| else: | ||
| self.apply_action('stopIdentify') | ||
| self.apply_action('stopIdentify') No newline at end of file |
| self.apply_action('setPosition', 'secured') | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent': | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent' or \ | ||
| self.tahoma_device.type == 'io:ExteriorVenetianBlindIOComponent': |
There was a problem hiding this comment.
continuation line over-indented for visual indent
| self.apply_action('setPosition', 'secured') | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent': | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent' or \ | ||
| self.tahoma_device.type == 'io:ExteriorVenetianBlindIOComponent': |
There was a problem hiding this comment.
continuation line with same indent as next logical line
./homeassistant/components/cover/tahoma.py:83:13: E125 continuation line with same indent as next logical line
E125 continuation line with same indent as next logical line
| self.apply_action('setPosition', 'secured') | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent': | ||
| elif self.tahoma_device.type == 'rts:BlindRTSComponent' or \ | ||
| 'io:ExteriorVenetianBlindIOComponent': |
There was a problem hiding this comment.
continuation line over-indented for visual indent
E127 continuation line over-indented for visual indent
|
Hello @balloob, I don't get it, I got stuck with an Travis CI build failure. Either I get "E127 continuation line over-indented for visual indent" or "E125 continuation line with same indent as next logical line", with following 2 lines of code: I tried many diffrent possiblities, but Travis CI always shows a failure with Python 2.5.2 TOXENV=lint... Best regards |
|
Many thanks for your help! |
* add 2 devices io:RollerShutterUnoIOComponent io:ExteriorVenetianBlindIOComponent * add 2 devices * Update tahoma.py * Fix hounci-bot violation * Fixed Travis CI build failure ./homeassistant/components/cover/tahoma.py:83:13: E125 continuation line with same indent as next logical line * Fixed Travis CI build failure E125 continuation line with same indent as next logical line * Fixed Travis CI build failure E127 continuation line over-indented for visual indent * Fix indent * Change check
Description:
Added two devices to tahoma:
io:RollerShutterUnoIOComponent
io:ExteriorVenetianBlindIOComponent
Related issue (if applicable): fixes #14318
Checklist: