home-automation-home-assistant/custom_components/fontawesome/config_flow.py
2021-08-28 21:21:19 +02:00

14 baris
427 B
Python

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={})