Example #1
0
def switch_fixture(port):
    """Switch fixture."""
    return mfi.MfiSwitch(port)
Example #2
0
 def setup_method(self, method):
     """Set up things to be run when tests are started."""
     self.hass = get_test_home_assistant()
     self.port = mock.MagicMock()
     self.switch = mfi.MfiSwitch(self.port)