mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
PyLint style fixes
This commit is contained in:
parent
b09fe4a3a7
commit
6e7887db23
@ -34,6 +34,7 @@ METHOD_GET = "get"
|
|||||||
METHOD_POST = "post"
|
METHOD_POST = "post"
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=no-init, invalid-name
|
||||||
class APIStatus(enum.Enum):
|
class APIStatus(enum.Enum):
|
||||||
""" Represents API status. """
|
""" Represents API status. """
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ class API(object):
|
|||||||
self.status = None
|
self.status = None
|
||||||
|
|
||||||
def validate_api(self, force_validate=False):
|
def validate_api(self, force_validate=False):
|
||||||
|
""" Tests if we can communicate with the API. """
|
||||||
if self.status is None or force_validate:
|
if self.status is None or force_validate:
|
||||||
self.status = validate_api(self)
|
self.status = validate_api(self)
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import datetime
|
|||||||
import re
|
import re
|
||||||
import enum
|
import enum
|
||||||
import socket
|
import socket
|
||||||
import os
|
|
||||||
|
|
||||||
RE_SANITIZE_FILENAME = re.compile(r'(~|\.\.|/|\\)')
|
RE_SANITIZE_FILENAME = re.compile(r'(~|\.\.|/|\\)')
|
||||||
RE_SLUGIFY = re.compile(r'[^A-Za-z0-9_]+')
|
RE_SLUGIFY = re.compile(r'[^A-Za-z0-9_]+')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user