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

@ -30,7 +30,7 @@ from .weather_update_coordinator import WeatherUpdateCoordinator
_LOGGER = logging.getLogger(__name__)
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up OpenWeatherMap as config entry."""
name = entry.data[CONF_NAME]
api_key = entry.data[CONF_API_KEY]