mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
pep257 fixes
This commit is contained in:
@@ -29,9 +29,9 @@ ICON_URL = 'http://icons.wxug.com/i/c/k/clear.gif'
|
||||
|
||||
def mocked_requests_get(*args, **kwargs):
|
||||
"""Mock requests.get invocations."""
|
||||
|
||||
class MockResponse:
|
||||
"""Class to represent a mocked response."""
|
||||
|
||||
def __init__(self, json_data, status_code):
|
||||
"""Initialize the mock response class."""
|
||||
self.json_data = json_data
|
||||
@@ -83,6 +83,7 @@ class TestWundergroundSetup(unittest.TestCase):
|
||||
DEVICES = []
|
||||
|
||||
def add_devices(self, devices):
|
||||
"""Mock add devices."""
|
||||
for device in devices:
|
||||
self.DEVICES.append(device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user