Skip to content

Add 2 devices to Tohoma cover#14321

Merged
fabaff merged 9 commits intohome-assistant:devfrom
m4dmin:dev
May 8, 2018
Merged

Add 2 devices to Tohoma cover#14321
fabaff merged 9 commits intohome-assistant:devfrom
m4dmin:dev

Conversation

@m4dmin
Copy link
Copy Markdown
Contributor

@m4dmin m4dmin commented May 6, 2018

Description:

Added two devices to tahoma:
io:RollerShutterUnoIOComponent
io:ExteriorVenetianBlindIOComponent

Related issue (if applicable): fixes #14318

Checklist:

  • The code change is tested and works locally.

io:RollerShutterUnoIOComponent
io:ExteriorVenetianBlindIOComponent
@homeassistant
Copy link
Copy Markdown
Contributor

Hi @m4dmin,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

balloob
balloob previously requested changes May 7, 2018
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')
else:
self.apply_action('stopIdentify')
self.apply_action('stopIdentify') No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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':
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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':
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

continuation line with same indent as next logical line

m4dmin added 2 commits May 7, 2018 11:13
./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':
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

continuation line over-indented for visual indent

E127 continuation line over-indented for visual indent
@m4dmin
Copy link
Copy Markdown
Contributor Author

m4dmin commented May 7, 2018

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:

         elif self.tahoma_device.type == 'rts:BlindRTSComponent' \
            or 'io:ExteriorVenetianBlindIOComponent':

I tried many diffrent possiblities, but Travis CI always shows a failure with Python 2.5.2 TOXENV=lint...
Do you have any idea how to fix this?

Best regards
Mathias

@fabaff fabaff dismissed balloob’s stale review May 8, 2018 11:42

Comment addressed

Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

🐦

@fabaff fabaff merged commit 4343659 into home-assistant:dev May 8, 2018
@fabaff fabaff changed the title add 2 devices Add 2 devices to Tohoma cover May 8, 2018
@m4dmin
Copy link
Copy Markdown
Contributor Author

m4dmin commented May 8, 2018

Many thanks for your help!

@balloob balloob mentioned this pull request May 28, 2018
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
* 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
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 2018
@ghost ghost removed the platform: cover.tahoma label Mar 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add devices to Tahoma

5 participants