Update HACS
This commit is contained in:
13
custom_components/fontawesome/config_flow.py
Normal file
13
custom_components/fontawesome/config_flow.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import logging
|
||||
|
||||
from homeassistant import config_entries
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@config_entries.HANDLERS.register("fontawesome")
|
||||
class FontawesomeConfigFlow(config_entries.ConfigFlow):
|
||||
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