Use bool annotations for setup entries (#51166)
This commit is contained in:
parent
b6355bcb48
commit
d1c4d0de49
103 changed files with 109 additions and 107 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue