Make 'monitored_conditions' optional (#8848)

* Do not call update() in constructor

* Update tests
This commit is contained in:
Fabian Affolter
2017-08-06 10:07:22 +02:00
committed by GitHub
parent cd36a71f64
commit 058deb5be3
2 changed files with 75 additions and 89 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
"""The tests for the sonarr platform."""
"""The tests for the Sonarr platform."""
import unittest
import time
from datetime import datetime
@@ -561,7 +561,7 @@ class TestSonarrSetup(unittest.TestCase):
# pylint: disable=invalid-name
DEVICES = []
def add_devices(self, devices):
def add_devices(self, devices, update):
"""Mock add devices."""
for device in devices:
self.DEVICES.append(device)