Use bool annotations for setup entries (#51166)

This commit is contained in:
tkdrob 2021-05-27 11:39:06 -04:00 committed by GitHub
parent b6355bcb48
commit d1c4d0de49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 109 additions and 107 deletions

View file

@ -13,7 +13,7 @@ from .const import CONF_RTSP_PORT, DOMAIN, LOGGER, SERVICE_PTZ, SERVICE_PTZ_PRES
PLATFORMS = ["camera"]
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up foscam from a config entry."""
hass.config_entries.async_setup_platforms(entry, PLATFORMS)