Lots of changes and modernization. WIP
This commit is contained in:
@@ -3,9 +3,12 @@ from homeassistant import config_entries
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
class BrowserModConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
@config_entries.HANDLERS.register(DOMAIN)
|
||||
class BrowserModConfigFlow(config_entries.ConfigFlow):
|
||||
|
||||
VERSION = 1
|
||||
VERSION = 2
|
||||
|
||||
async def async_step_import(self, import_info):
|
||||
return self.async_create_entry(title="Browser Mod", data={})
|
||||
async def async_step_user(self, user_input=None):
|
||||
if self._async_current_entries():
|
||||
return self.async_abort(reason="single_instance_allowed")
|
||||
return self.async_create_entry(title="", data={})
|
||||
|
||||
Reference in New Issue
Block a user