Use domain const in config_flow (#48168)

This commit is contained in:
Philip Allgaier 2021-03-21 00:34:46 +01:00 committed by GitHub
parent 01fcc41aa0
commit 3ae9460131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 10 deletions

View file

@ -27,11 +27,12 @@ from .const import (
DEFAULT_BIRTH,
DEFAULT_DISCOVERY,
DEFAULT_WILL,
DOMAIN,
)
from .util import MQTT_WILL_BIRTH_SCHEMA
@config_entries.HANDLERS.register("mqtt")
@config_entries.HANDLERS.register(DOMAIN)
class FlowHandler(config_entries.ConfigFlow):
"""Handle a config flow."""