def switch_fixture(port): """Switch fixture.""" return mfi.MfiSwitch(port)
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)