add 2 devices (#14321)

* 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
This commit is contained in:
m4dmin 2018-05-08 13:43:07 +02:00 committed by Fabian Affolter
parent 230bd3929c
commit 4343659742
2 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,9 @@ class TahomaCover(TahomaDevice, CoverDevice):
if self.tahoma_device.type == \
'io:RollerShutterWithLowSpeedManagementIOComponent':
self.apply_action('setPosition', 'secured')
elif self.tahoma_device.type == 'rts:BlindRTSComponent':
elif self.tahoma_device.type in \
('rts:BlindRTSComponent',
'io:ExteriorVenetianBlindIOComponent'):
self.apply_action('my')
else:
self.apply_action('stopIdentify')

View File

@ -40,6 +40,8 @@ TAHOMA_TYPES = {
'rts:CurtainRTSComponent': 'cover',
'rts:BlindRTSComponent': 'cover',
'rts:VenetianBlindRTSComponent': 'cover',
'io:ExteriorVenetianBlindIOComponent': 'cover',
'io:RollerShutterUnoIOComponent': 'cover',
'io:RollerShutterWithLowSpeedManagementIOComponent': 'cover',
'io:RollerShutterVeluxIOComponent': 'cover',
'io:RollerShutterGenericIOComponent': 'cover',