Skip to content

Commit 278feb9

Browse files
Notice that shows remote node has no configuration options instead of throwing a 500 error (#210)
1 parent d12d766 commit 278feb9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

custom_components/remote_homeassistant/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(self, config_entry):
208208
async def async_step_init(self, user_input=None):
209209
"""Manage basic options."""
210210
if self.config_entry.unique_id == REMOTE_ID:
211-
return
211+
return self.async_abort(reason="not_supported")
212212

213213
if user_input is not None:
214214
self.options = user_input.copy()

custom_components/remote_homeassistant/translations/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
"add_new_event": "Add new event"
7979
}
8080
}
81+
},
82+
"abort": {
83+
"not_supported": "No configuration options supported for a remote node"
8184
}
8285
}
8386
}

0 commit comments

Comments
 (0)