Skip to content

Commit

Permalink
Fix other formatting issues (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
bm1549 authored Jun 16, 2024
1 parent b4bfacb commit 7ba33a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frigidaire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def get_headers_frigidaire(self, method: str, include_bearer_token: bool) -> Dic
to_return["Content-Type"] = "application/json"
return to_return

def get_headers_auth(self, method: str) -> Dict[str, str]:
@staticmethod
def get_headers_auth(method: str) -> Dict[str, str]:
to_return = {
"User-Agent": AUTH_USER_AGENT,
"Accept-Encoding": "gzip",
Expand Down Expand Up @@ -507,7 +508,8 @@ def parse_response(response: Response) -> Dict:

return response_dict

def handle_request_exception(self, e: Exception, method: str, fullpath: str, headers: Dict[str, str], payload: str):
@staticmethod
def handle_request_exception(e: Exception, method: str, fullpath: str, headers: Dict[str, str], payload: str):
logging.warning(e)
error_str = f'Error processing request:\n{method} {fullpath}\nheaders={headers}\npayload={payload}\n'
'This may be safely ignored when used to test for a good connection in the authentication flow'
Expand Down

0 comments on commit 7ba33a4

Please sign in to comment.