Skip to content

Commit 7ba33a4

Browse files
authored
Fix other formatting issues (#31)
1 parent b4bfacb commit 7ba33a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frigidaire/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ def get_headers_frigidaire(self, method: str, include_bearer_token: bool) -> Dic
259259
to_return["Content-Type"] = "application/json"
260260
return to_return
261261

262-
def get_headers_auth(self, method: str) -> Dict[str, str]:
262+
@staticmethod
263+
def get_headers_auth(method: str) -> Dict[str, str]:
263264
to_return = {
264265
"User-Agent": AUTH_USER_AGENT,
265266
"Accept-Encoding": "gzip",
@@ -507,7 +508,8 @@ def parse_response(response: Response) -> Dict:
507508

508509
return response_dict
509510

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

0 commit comments

Comments
 (0)