Improve config entry title for GIOS integration (#52583)

* Improve GIOS config entry title

* Usonly station name as title
This commit is contained in:
Maciej Bieniek 2021-07-06 14:04:00 +02:00 committed by GitHub
parent b645560633
commit dc72c6c606
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ class GiosFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
await gios.async_update()
return self.async_create_entry(
title=user_input[CONF_STATION_ID],
title=gios.station_name,
data=user_input,
)
except (ApiError, ClientConnectorError, asyncio.TimeoutError):