Skip to content

Commit 12534d1

Browse files
authored
Update api.py to fit lint errors and shift credit for login fix closer to the fix in context
1 parent 3199765 commit 12534d1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • custom_components/generac

custom_components/generac/api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
"""Generac API Client."""
2-
3-
# Incorporates changes from https://github.com/bentekkie/ha-generac/pull/140
4-
52
import json
63
import logging
74
from typing import Any
@@ -51,6 +48,7 @@ def __init__(
5148
self._session = session
5249
self._logged_in = False
5350
self.csrf = ""
51+
# Below is the login fix from https://github.com/bentekkie/ha-generac/pull/140
5452
self._headers = {
5553
"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",
5654
"Accept": "application/json, text/plain, */*",

0 commit comments

Comments
 (0)