mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
No longer rely on requests (#23685)
* No longer rely on requests * Lint * Missed a few parts * Fix types * Fix more types * Update __main__.py * Fix tests * Lint * Fix script
This commit is contained in:
@@ -167,8 +167,9 @@ class PlayStation4FlowHandler(config_entries.ConfigFlow):
|
||||
|
||||
# Try to find region automatically.
|
||||
if not self.location:
|
||||
self.location = await self.hass.async_add_executor_job(
|
||||
location.detect_location_info)
|
||||
self.location = await location.async_detect_location_info(
|
||||
self.hass.helpers.aiohttp_client.async_get_clientsession()
|
||||
)
|
||||
if self.location:
|
||||
country = self.location.country_name
|
||||
if country in COUNTRIES:
|
||||
|
||||
Reference in New Issue
Block a user