Skip to content

Commit

Permalink
Merge pull request #7 from rakaandro/master
Browse files Browse the repository at this point in the history
Update cover.py, add SX5 Garagentor
  • Loading branch information
gluap authored Apr 8, 2021
2 parents 15e3eee + bfa56b5 commit d134730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/duofern/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):

stick = hass.data[DOMAIN]['stick']

# Add devices
to_add = [DuofernShutter(device['id'], device['name'], stick, hass) for device in stick.config['devices'] if (device['id'].startswith('40') or device['id'].startswith('41') or device['id'].startswith('42') or device['id'].startswith('47') or device['id'].startswith('49') or device['id'].startswith('61')) and not device['id'] in hass.data[DOMAIN]['devices'].keys()]
# Add devices {"40","41","42","47","49","4e","61"}
to_add = [DuofernShutter(device['id'], device['name'], stick, hass) for device in stick.config['devices'] if (device['id'].startswith('40') or device['id'].startswith('41') or device['id'].startswith('42') or device['id'].startswith('47') or device['id'].startswith('49') or device['id'].startswith('4e') or device['id'].startswith('61')) and not device['id'] in hass.data[DOMAIN]['devices'].keys()]
add_devices(to_add)


Expand Down

0 comments on commit d134730

Please sign in to comment.