Fix bug that prevents multiple instances of Tile (#57942)

This commit is contained in:
Aaron Bach 2021-10-17 21:32:18 -06:00 committed by GitHub
parent cac0c04a91
commit 6a8ff9ffe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -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)
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:
client = await async_login(

View file

@ -3,7 +3,7 @@
"name": "Tile",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/tile",
"requirements": ["pytile==5.2.3"],
"requirements": ["pytile==5.2.4"],
"codeowners": ["@bachya"],
"iot_class": "cloud_polling"
}

View file

@ -1952,7 +1952,7 @@ python_opendata_transport==0.2.1
pythonegardia==1.0.40
# homeassistant.components.tile
pytile==5.2.3
pytile==5.2.4
# homeassistant.components.touchline
pytouchline==0.7

View file

@ -1136,7 +1136,7 @@ python-twitch-client==0.6.0
python_awair==0.2.1
# homeassistant.components.tile
pytile==5.2.3
pytile==5.2.4
# homeassistant.components.traccar
pytraccar==0.9.0