Skip to content

Commit

Permalink
Notice that shows remote node has no configuration options instead of…
Browse files Browse the repository at this point in the history
… throwing a 500 error (#210)
  • Loading branch information
lukas-hetzenecker authored Jan 9, 2023
1 parent d12d766 commit 278feb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/remote_homeassistant/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(self, config_entry):
async def async_step_init(self, user_input=None):
"""Manage basic options."""
if self.config_entry.unique_id == REMOTE_ID:
return
return self.async_abort(reason="not_supported")

if user_input is not None:
self.options = user_input.copy()
Expand Down
3 changes: 3 additions & 0 deletions custom_components/remote_homeassistant/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"add_new_event": "Add new event"
}
}
},
"abort": {
"not_supported": "No configuration options supported for a remote node"
}
}
}

0 comments on commit 278feb9

Please sign in to comment.