From bfa56b5e75b4f46814c7289513c17d1b466539ba Mon Sep 17 00:00:00 2001 From: rakaandro Date: Mon, 5 Apr 2021 22:53:20 +0200 Subject: [PATCH] Update cover.py, add SX5 Garagentor add RADEMACHER ROLLOPORT SX5 DUOFERN Garagentorantrieb as a simple cover --- custom_components/duofern/cover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/duofern/cover.py b/custom_components/duofern/cover.py index 74ac01b..323c4a1 100644 --- a/custom_components/duofern/cover.py +++ b/custom_components/duofern/cover.py @@ -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)