mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-30 05:13:40 +00:00
fix: handle unknown integration version in setup entry
This commit is contained in:
parent
6a2b7037c9
commit
12fbe33bb9
1 changed files with 2 additions and 2 deletions
|
|
@ -61,14 +61,14 @@ async def async_setup_entry(
|
||||||
coordinator = TibberPricesDataUpdateCoordinator(
|
coordinator = TibberPricesDataUpdateCoordinator(
|
||||||
hass=hass,
|
hass=hass,
|
||||||
config_entry=entry,
|
config_entry=entry,
|
||||||
version=integration.version,
|
version=str(integration.version) if integration.version else "unknown",
|
||||||
)
|
)
|
||||||
|
|
||||||
entry.runtime_data = TibberPricesData(
|
entry.runtime_data = TibberPricesData(
|
||||||
client=TibberPricesApiClient(
|
client=TibberPricesApiClient(
|
||||||
access_token=entry.data[CONF_ACCESS_TOKEN],
|
access_token=entry.data[CONF_ACCESS_TOKEN],
|
||||||
session=async_get_clientsession(hass),
|
session=async_get_clientsession(hass),
|
||||||
version=integration.version,
|
version=str(integration.version) if integration.version else "unknown",
|
||||||
),
|
),
|
||||||
integration=integration,
|
integration=integration,
|
||||||
coordinator=coordinator,
|
coordinator=coordinator,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue