Add empty config schema to mailbox (#93953)

This commit is contained in:
Erik Montnemery 2023-06-02 09:28:13 +02:00 committed by GitHub
parent 0916a6c0cb
commit 3ed8e2d0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,11 @@ from homeassistant.components import frontend
from homeassistant.components.http import HomeAssistantView
from homeassistant.core import Event, HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import config_per_platform, discovery
from homeassistant.helpers import (
config_per_platform,
config_validation as cv,
discovery,
)
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
@ -32,6 +36,8 @@ CONTENT_TYPE_NONE: Final = "none"
SCAN_INTERVAL = timedelta(seconds=30)
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Track states and offer events for mailboxes."""