File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/duofern Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments