Skip to content

Commit

Permalink
Remove august IPv6 workaround (home-assistant#123408)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 9, 2024
1 parent eb1c2f5 commit 2b95a64
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions homeassistant/components/august/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from datetime import datetime, timedelta
from functools import partial
import socket

import aiohttp
from yalexs.activity import ACTION_DOORBELL_CALL_MISSED, Activity, ActivityType
Expand All @@ -26,14 +25,7 @@ def async_create_august_clientsession(hass: HomeAssistant) -> aiohttp.ClientSess
# Create an aiohttp session instead of using the default one since the
# default one is likely to trigger august's WAF if another integration
# is also using Cloudflare
#
# The family is set to AF_INET because IPv6 keeps coming up as an issue
# see https://github.com/home-assistant/core/issues/97146
#
# When https://github.com/aio-libs/aiohttp/issues/4451 is implemented
# we can allow IPv6 again
#
return aiohttp_client.async_create_clientsession(hass, family=socket.AF_INET)
return aiohttp_client.async_create_clientsession(hass)


def retrieve_time_based_activity(
Expand Down

0 comments on commit 2b95a64

Please sign in to comment.