Skip to content

Commit a422013

Browse files
authored
Merge pull request #60 from t-animal/master
Fix rollotron sunMode/manualMode property exposure
2 parents f6da5a0 + 4c88a94 commit a422013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/duofern/switch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ async def async_setup_entry(
3535
"manualMode": ["manualMode", "Manual Mode", "manual_mode"],
3636
"sunAutomatic": ["sunAutomatic", "Sun Automatic", "sun_automatic"]
3737
}
38-
for subId, [command, nameSuffix, idSuffix] in shutterSwitches.entries():
38+
for subId, [command, nameSuffix, idSuffix] in shutterSwitches.items():
3939
for duofernDevice in stick.config['devices']:
4040
duofernId: str = duofernDevice['id']
4141
if not is_shutter(duofernId):
4242
_LOGGER.info("switch: skipping: " + str(duofernId) + " because it is not a shutter")
4343
continue
44-
44+
4545
if isDeviceSetUp(hass, duofernId, subId):
4646
_LOGGER.info("switch: skipping: " + str(duofernId) + " because it is is already set up")
4747
continue

0 commit comments

Comments
 (0)