Use voluptuous for mFi switch (#3168)

* Migrate to voluptuous

* Take change configuration into account
This commit is contained in:
Fabian Affolter authored and Teagan Glenn committed 2016-09-03 20:32:35 -06:00
1 parent 8467d07a3d
commit 3c615e2319
4 files changed
+65 -62

No files matched your search

+2 -2
View File
@@ -22,6 +22,8 @@ class TestMfiSwitchSetup(test_mfi_sensor.TestMfiSensorSetup):
'port': 6123,
'username': 'user',
'password': 'pass',
'ssl': True,
'verify_ssl': True,
}
}
@@ -48,8 +50,6 @@ class TestMfiSwitch(unittest.TestCase):
def setup_method(self, method):
"""Setup things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.hass.config.latitude = 32.87336
self.hass.config.longitude = 117.22743
self.port = mock.MagicMock()
self.switch = mfi.MfiSwitch(self.port)