We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3199765 commit 12534d1Copy full SHA for 12534d1
1 file changed
custom_components/generac/api.py
@@ -1,7 +1,4 @@
1
"""Generac API Client."""
2
-
3
-# Incorporates changes from https://github.com/bentekkie/ha-generac/pull/140
4
5
import json
6
import logging
7
from typing import Any
@@ -51,6 +48,7 @@ def __init__(
51
48
self._session = session
52
49
self._logged_in = False
53
50
self.csrf = ""
+ # Below is the login fix from https://github.com/bentekkie/ha-generac/pull/140
54
self._headers = {
55
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
56
"Accept": "application/json, text/plain, */*",
0 commit comments