Skip to content

Commit 28e619a

Browse files
author
Arama Pirika
committed
Fix SSL certificate verification notificaiton for gardenbags_co_nz source
- Add urllib3 import and disable InsecureRequestWarning - Follows same pattern as other sources (awg_de, basingstoke_gov_uk, etc.) - Resolves SSLCertVerificationError: certificate verify failed message in HA logs
1 parent 949edfa commit 28e619a

File tree

1 file changed

+4
-0
lines changed
  • custom_components/waste_collection_schedule/waste_collection_schedule/source

1 file changed

+4
-0
lines changed

custom_components/waste_collection_schedule/waste_collection_schedule/source/gardenbags_co_nz.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import requests
2+
import urllib3
23
from bs4 import BeautifulSoup
34
from dateutil.parser import parse
45
from waste_collection_schedule import Collection
56

7+
# This line suppresses the InsecureRequestWarning when using verify=False
8+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
9+
610
TITLE = "GardenBags NZ"
711
DESCRIPTION = "Source for GatdenBags NZ."
812
URL = "https://gardenbags.co.nz"

0 commit comments

Comments
 (0)