Skip to content

Commit

Permalink
Fix error when selecting advanced option (issue #174)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Jul 28, 2022
1 parent 7789b7b commit a247e6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/samsungtv_smart/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ def _async_option_form(self):
vol.Optional(
CONF_SYNC_TURN_OFF,
description={
"suggested_value": options.get(CONF_SYNC_TURN_OFF)
"suggested_value": options.get(CONF_SYNC_TURN_OFF, [])
},
): cv.multi_select(switch_entities),
vol.Optional(
CONF_SYNC_TURN_ON,
description={
"suggested_value": options.get(CONF_SYNC_TURN_ON)
"suggested_value": options.get(CONF_SYNC_TURN_ON, [])
},
): cv.multi_select(switch_entities),
vol.Required(CONF_SHOW_ADV_OPT, default=False): bool,
Expand Down Expand Up @@ -556,7 +556,7 @@ def _async_adv_opt_form(self):
vol.Optional(
CONF_EXT_POWER_ENTITY,
description={
"suggested_value": options.get(CONF_EXT_POWER_ENTITY)
"suggested_value": options.get(CONF_EXT_POWER_ENTITY, "")
}
): vol.In(external_entities),
vol.Required(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/samsungtv_smart/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"dependencies": [],
"codeowners": ["@jaruba", "@ollo69", "@screwdgeh"],
"config_flow": true,
"version": "0.7.4"
"version": "0.7.5"
}

0 comments on commit a247e6a

Please sign in to comment.