Fix bug that prevents multiple instances of Tile (#57942)
This commit is contained in:
parent
cac0c04a91
commit
6a8ff9ffe7
4 changed files with 6 additions and 4 deletions
|
@ -59,7 +59,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
|
|
||||||
await async_migrate_entries(hass, entry.entry_id, async_migrate_callback)
|
await async_migrate_entries(hass, entry.entry_id, async_migrate_callback)
|
||||||
|
|
||||||
websession = aiohttp_client.async_get_clientsession(hass)
|
# Tile's API uses cookies to identify a consumer; in order to allow for multiple
|
||||||
|
# instances of this config entry, we use a new session each time:
|
||||||
|
websession = aiohttp_client.async_create_clientsession(hass)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client = await async_login(
|
client = await async_login(
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Tile",
|
"name": "Tile",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/tile",
|
"documentation": "https://www.home-assistant.io/integrations/tile",
|
||||||
"requirements": ["pytile==5.2.3"],
|
"requirements": ["pytile==5.2.4"],
|
||||||
"codeowners": ["@bachya"],
|
"codeowners": ["@bachya"],
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1952,7 +1952,7 @@ python_opendata_transport==0.2.1
|
||||||
pythonegardia==1.0.40
|
pythonegardia==1.0.40
|
||||||
|
|
||||||
# homeassistant.components.tile
|
# homeassistant.components.tile
|
||||||
pytile==5.2.3
|
pytile==5.2.4
|
||||||
|
|
||||||
# homeassistant.components.touchline
|
# homeassistant.components.touchline
|
||||||
pytouchline==0.7
|
pytouchline==0.7
|
||||||
|
|
|
@ -1136,7 +1136,7 @@ python-twitch-client==0.6.0
|
||||||
python_awair==0.2.1
|
python_awair==0.2.1
|
||||||
|
|
||||||
# homeassistant.components.tile
|
# homeassistant.components.tile
|
||||||
pytile==5.2.3
|
pytile==5.2.4
|
||||||
|
|
||||||
# homeassistant.components.traccar
|
# homeassistant.components.traccar
|
||||||
pytraccar==0.9.0
|
pytraccar==0.9.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue