Skip to content

Commit eb86cfe

Browse files
authored
fix: add logger to debug rest api #14
1 parent 4bf9fe9 commit eb86cfe

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

custom_components/yerushamayim/data_coordinator.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ def __init__(self, hass: HomeAssistant):
6262
method="GET",
6363
resource=URL,
6464
encoding="UTF-8",
65-
username=None,
66-
password=None,
67-
headers=headers,
6865
auth=None,
66+
headers=headers,
67+
params=None
68+
data=None
6969
verify_ssl=False,
70+
ssl_cipher_list="python_default"
7071
timeout=30
7172
)
7273

@@ -76,11 +77,12 @@ def __init__(self, hass: HomeAssistant):
7677
method="GET",
7778
resource=COLDMETER_API,
7879
encoding="UTF-8",
79-
username=None,
80-
password=None,
81-
headers=headers,
8280
auth=None,
81+
headers=headers,
82+
params=None
83+
data=None
8384
verify_ssl=False,
85+
ssl_cipher_list="python_default"
8486
timeout=30
8587
)
8688

@@ -90,11 +92,12 @@ def __init__(self, hass: HomeAssistant):
9092
method="GET",
9193
resource=REST_API,
9294
encoding="UTF-8",
93-
username=None,
94-
password=None,
95-
headers=rest_headers,
9695
auth=None,
96+
headers=rest_headers,
97+
params=None
98+
data=None
9799
verify_ssl=False,
100+
ssl_cipher_list="python_default"
98101
timeout=30
99102
)
100103

0 commit comments

Comments
 (0)