Don't allow multiple instances
This commit is contained in:
@@ -13,6 +13,8 @@ class PlejdConfigFlow(ConfigFlow, domain="plejd"):
|
||||
async def async_step_user(self, info=None):
|
||||
|
||||
if info is None:
|
||||
if self._async_current_entries():
|
||||
return self.async_abort(reason="single_instance_allowed")
|
||||
return self.async_show_form(
|
||||
step_id="user",
|
||||
data_schema=vol.Schema(
|
||||
|
||||
Reference in New Issue
Block a user