Use voluptuous for mFi switch (#3168)
* Migrate to voluptuous * Take change configuration into account
This commit is contained in:
1 parent
8467d07a3d
commit
3c615e2319
4 files changed
+65
-62
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user