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