Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peribeir committed Jan 22, 2022
1 parent 0c7acb7 commit 6cb5102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/rademacher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def async_update_data():
)

# Backward compatibility
entry_options = entry.options
entry_options = entry.options.copy()
if CONF_EXCLUDE not in entry.options:
if CONF_DEVICES in entry.options:
entry_options[CONF_EXCLUDE] = [
Expand Down
2 changes: 1 addition & 1 deletion custom_components/rademacher/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def async_step_init(self, user_input=None):
"""Manage the options."""
if user_input is not None:
data = {
CONF_DEVICES: user_input[CONF_DEVICES],
CONF_EXCLUDE: user_input[CONF_EXCLUDE],
}
return self.async_create_entry(title=f"Host: {self.host}", data=data)
self.host = self.config_entry.data[CONF_HOST]
Expand Down

0 comments on commit 6cb5102

Please sign in to comment.